当前位置:网站首页>JS regular verification time test() method
JS regular verification time test() method
2022-06-23 17:40:00 【It workers】
test() Method to detect whether a string matches a pattern .
The rules .test(str);
Return value : If the string contains text that matches the written regular , Then return to true, Otherwise return to false.
In the following example , We will search "W3School":
<script type="text/javascript">
var str = "Visit W3School";
var patt1 = new RegExp("W3School");
var result = patt1.test(str);
document.write("Result: " + result);
</script>Output :
Result: true
边栏推荐
- 解析 | 模-数(A/D)转换器
- Bypass rights
- The company recruited a tester with five years' experience and saw the real test ceiling
- Answer 02: why can Smith circle "allow left string and right parallel"?
- [qsetting and.Ini configuration files] and [create resources.qrc] in QT
- Intranet penetration token stealing
- Read the typical application circuit of microphone
- 一文入门智能开关的3种功能形态
- Jetpack compose and material you FAQs
- What is the personal finance interest rate in 2022? How do individuals choose financial products?
猜你喜欢

混沌工程在云原生中间件稳定性治理中的实践分享
![[30. concatenate substrings of all words]](/img/e7/453c8524a23fbb7501e85140547ce1.png)
[30. concatenate substrings of all words]

How important is 5g dual card dual access?

C#与数据库连接

qYKVEtqdDg

时间戳90K是什么意思?
![[go] calling Alipay to scan code for payment in a sandbox environment](/img/d4/c6d72a697bc08f69f11121a15109b3.png)
[go] calling Alipay to scan code for payment in a sandbox environment
![QT layout manager [qvboxlayout, qhboxlayout, qgridlayout]](/img/62/a0425a325f123ba91a7a69cf854d2c.png)
QT layout manager [qvboxlayout, qhboxlayout, qgridlayout]

使用Jmeter进行性能测试及性能监控平台搭建

Comparison of asemi Schottky diode and ultrafast recovery diode in switching power supply
随机推荐
【网络通信 -- WebRTC】WebRTC 源码分析 -- PacingController 相关知识点补充
Jetpack compose and material you FAQs
What does the timestamp 90K mean?
What is an abstract class? How to define abstract classes?
时间戳90K是什么意思?
官方零基础入门 Jetpack Compose 的中文课程来啦
Postgresql_ Optimize SQL based on execution plan
Digital twin excavator of Tupu software realizes remote control
你的PCB地线走的对吗?为什么要有主地?
如何通过线上股票开户?在线开户安全么?
Jetpack Compose 与 Material You 常见问题解答
Troubleshooting of datanode entering stale status
MySQL事务提交流程
以 27K 成功入职字节跳动,这份《 软件测试面试笔记》让我受益终身
Case analysis of camera power supply disturbed, seriously affecting image quality
Installation, configuration, désinstallation de MySQL
Meituan Sanmian: how do you understand the principle of redis master-slave replication?
How to design a seckill system?
ELK日志收集系统部署
The Google play academy team PK competition is in full swing!