|
Character
|
Description
|
|
|
Marks the next character as special. All characters that are special but which you want use for defining a search should be preceded by this character.
|
|
|
Matches the beginning of input or line. In this implementation this cannot be defined in charset.
|
|
|
Matches the end of input or line. In this implementation this cannot be defined in charset.
|
|
|
Matches preceding character zero or more times. In this implementation cannot be defined if only one character specified in the regular expression. That means that /zo*/ matches z and zoo, but /z*/ will match nothing because only one character has been specified.
|
|
|
Matches preceding character one or more times.
|
|
|
Matches preceding character zero or one time. In this implementation cannot be defined if only one character specified in the regular expression.
|
|
|
Matches any single character except '\n'
|
|
|
Matches pattern and remembers the match. The matched substring can be retrieved by using '\0'-'\9' in regular expression, where '0'-'9' are the numbers of the patterns. Example: regular expression '(re).*\0s+ion' will match 'regular expression' because first matches pattern 're' and remember the pattern with index 0. '.*' will match 'gular exp' in 'regular expression'. Now we retrieve the pattern with index 0, that has been remembered with index 0, this is 're' that matches 're' in 'regular expression' before 'ssion' and , finally, 's+ion' matches 'ssion'
|
|
|
Matches either character 'x' or 'y'. You can combine more than two characters like 'x|y|z'
|
|
|
Means preceding character will match exactly n times (nonnegative, of course)
|
|
|
Means preceding character will match at least n times (nonnegative)
|
|
|
Means preceding character will match at least n times and at most m times. (n,m - nonnegative)
|
|
|
A character set. Matches any one of enclosed characters
|
|
A non-matching character set. Matches any character that is not in the set.
|
|
|
Matches word boundary, that is boundary between any character excluding space characters (" \f\n\r\t\v") and space characters
|
|
|
Matches non-word boundary. Matches any boundary between space characters or between nonspace characters.
|
|
|
Matches any digit /0-9/
|
|
|
Matches any non-digit.
|
|
|
Matches a formfeed
|
|
|
Matches a new-line character
|
|
|
Matches a carriage return character.
|
|
|
Matches any white space character.
|
|
|
Matches any non-white space character.
|
|
|
Matches a tab character.
|
|
|
Matches any vertical tab character.
|
|
|
Matches any word character including underscore. [A-Za-z0-9_].
|
|
|
Matches any non-word character (any character that does not match \w).
|
|
|
Where num is number between 0 and 9. Matches remembered pattern. (See description of pattern).
|
|
|
Where n is between 1 and 255. Matches supplied in n ASCII code.
|