test(str)

compile(pattern[, flags])

exec(str)

test(str)

Execute the search for a match in a string and returns true if the match is found and false otherwise.

Examples

var re = new RegExp(".*JavA.*", 'i');

var found = re.test(str);

<< exec(str) © 1996-2013 InetSoft Technology Corporation (v11.5) JS.9 Java Objects (LiveConnect) >>