multiple regex with test method javascript code example
Example: javascript inbuilt funcctions to match the word and return boolean
String.prototype.isMatch = function(s){
return this.match(s)!==null
}
String.prototype.isMatch = function(s){
return this.match(s)!==null
}