JavaScript test() 方法
JavaScript test() 方法JavaScript RegExp 对象定义和用法test() 方法用于检测一个字符串是否匹配某个模式. 如果字符串中有匹配的值返回true ,否则返回false。
Regular expressions - JavaScript
2024年1月2日 — Using regular expressions in JavaScript. Regular expressions are used with the RegExp methods test() and exec() and with the String methods ...
String.prototype.match() - JavaScript
2023年8月9日 — If you need to know if a string matches a regular expression RegExp , use RegExp.prototype.test() . If you only want the first match found ...
RegExp.prototype.test() - JavaScript
2023年9月25日 — Description. Use test() whenever you want to know whether a pattern is found in a string. test() returns a boolean, unlike the String.prototype.
regex101
Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.
RegExr
Regular expression tester with syntax highlighting, PHP / PCRE & JS Support, contextual help, cheat sheet, reference, and searchable community patterns.
Regex Tester
general escape character with several uses. ^, assert start of subject (or line, in multiline mode). $, assert end of subject or before a terminating ...