Answers for "javascript boolean regex match"

1

javascript boolean regex match

//RegExp.prototype.test()

str = 'ok';
regex = /ok/;

console.log(regex.test(str)) // => true
Posted by: Guest on November-08-2020

Code answers related to "javascript boolean regex match"

Code answers related to "Javascript"

Browse Popular Code Answers by Language