|
|
Resin's regular expressions are based on Perl5 but matche 16-bit strings. The JavaScript interface is based on Netscape 1.3. See string objects and regular expression objects for API details.
The syntax follows Perl5. Characters escape the same as for strings.
Match .
Matches any characters in .
Matches any characters not in .
Matches any character except newline, i.e. [^\n]
Matches whitespace, i.e. [ \t\r\n\v\f]
Matches non-whitespace, i.e. [^ \t\r\n\v\f]
Matches any digit, i.e. [0-9]
Matches any non-digit, i.e. [^0-9]
Matches any alphanumeric character, i.e. [a-zA-Z0-9_]
Matches any non-alphanumeric character, i.e. [^a-zA-Z0-9_]
Match followed by .
Matches if matches, storing the submatch.
Matches the th submatch.
Match . Does not store the submatch.
Match if matches or if matches.
Match as many as possible.
Match as many as possible but at least one.
Try to match , otherwise just match.
Try to match at most repetitions of , but match at
least of them. If is omitted, it is treated
as 0. If is omitted, it is treated as infinity.
Match exactly repetitions of .
Match as few as possible.
Match as few as possible but at least one.
Try to match without , otherwise try to match .
Matches at the beginning of the line.
Matches at the end of the line.
Matches at a word boundary.
Matches if not at a word boundary.
Matches at the beginning of the string.
Matches at the end of the string.
Matches at the beginning of the test (for a /g).
Matches only if follows but do not match as
part of the matched string.
Matches only if does not follow.
Match always. is just a comment.
Sets the given flag for the entire regular expression.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||