Construct a RegExp object. Compile pattern with <i>attributes</i> into an internal form for fast execution.
Search string[] for match.
Pick up where last exec(string) or exec() left off, searching string[] for next match.
Search string[] for match with regular expression.
Same as opIndex(n).
Search s[] for match.
Set up for start of foreach loop.
Retrieve match n.
Find regular expression matches in s[]. Replace those matches with a new string composed of format[] merged with the result of the matches. If global, replace all matches. Otherwise, replace first match.
After a match is found with test(), this function will take the match results and, using the format string, generate and return a new string.
* Like replace(char[] format), but uses old style formatting: <table border=1 cellspacing=0 cellpadding=5> <th>Format <th>Description <tr> <td><b>&</b> <td>replace with the match </tr> <tr> <td><b>\</b><i>n</i> <td>replace with the <i>n</i>th parenthesized match, <i>n</i> is 1..9 </tr> <tr> <td><b>\</b><i>c</i> <td>replace with char <i>c</i>. </tr> </table>
Set up for start of foreach loop.
Split s[] into an array of strings, using the regular expression as the separator.
* Search s[] for match. * Returns: 0 for no match, !=0 for match * Example:
Pick up where last test(string) or test() left off, and search again.
Test s[] starting at startindex against regular expression.
Return the slice of the input that follows the matched substring.
Return the slice of the input that precedes the matched substring.
Generate instance of RegExp.
RegExp is a class to handle regular expressions.
It is the core foundation for adding powerful string pattern matching capabilities to programs like grep, text editors, awk, sed, etc.