JavaScript test() 方法
JavaScript test() 方法JavaScript RegExp 对象定义和用法test() 方法用于检测一个字符串是否匹配某个模式. 如果字符串中有匹配的值返回true ,否则返回false。
regexp:test() - EXSLT
regexp:test() tests to see whether a string matches a specified regular expression. Syntax: js Copy to Clipboard regexp:test(testString, regExpString[, ...
RegExp.prototype.test() - JavaScript
4 天前 · Description. Use test() whenever you want to know whether a pattern is found in a string. test() returns a boolean, unlike the String.prototype. Try it · Syntax · Description · Examples
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.
JavaScript RegExp test() Method
The test() method tests for a match in a string. If it finds a match, it returns true, otherwise it returns false. Browser Support.