Regular Expression

The regular expression datatype represents an immutable compiled regular expression.

:-) //hello/;
java.util.Pattern@.....
      

In order to be useful a regular expression must be combined with a string, i.e. matching the regular expression against the string.

:-) var regex = //hello/;
There are 0 results
:-) regex.isMatch( "hello" );
There is 1 result
<true>