Reference

Class

RiString

Name

match

Description Tells whether the string matches the given regular expression, and if so, returns all matches.
Syntax
match(pattern);
Parameters
String or Object (the regex)regular expression
Returns
String[]string array of matches or empty array if none are found
Example
rs = new RiString("The rain stays mainly in the plain");
count = rs.match("ain").length; // count equals 3
Platform Java / Javascript