isMatch( RegEx, String )

Returns true if part of the input string matches the regex and false otherwise.

:-) var regex = //hello/;
:-) regex;
There is 1 result
java.util.Pattern@.....
:-) regex.isMatch( "hello" );
There is 1 result
<true>
:-) regex.isMatch( "Oh! Hello there" );
There is 1 result
<true>