| char |
matches itself, unless it is a special character: . \ [ ] ^ * + ? |
| . |
matches any character, but not \n |
| [set] |
matches one of the characters in set. If the first
character in the set is '^', it matches a character not in the set.
A short 'a-z' is used to to define a set of characters 'a' up to 'z'. |
| \ |
matches the character following it, except when followed by a left or right
round bracket, an angle bracket, a '|' or one of the characters "ntr" (see below for that).
It is used as an escape character for all other special characters and itself. When used
in a set it is treated as an ordinary character |
| * |
any regular expression followed by '*' matches zero, one or more times of that form |
| + |
any regular expression followed by '+' matches one or more times of that form |
| ? |
any regular expression followed by '?' matches zero or once of that form |
| \n, \t, \r |
these are used in regular expressions to denote the
special characters newline, tab and carriage return |
| \( \) |
any regular expression enclosed as \(expression\) matches
what expression matches. With these meta characters you can overwrite the precedences rules
of repetitions. |
| \| |
any expression joined like "exp1\|exp2" matches any string matching
either subexpression (exp1 or exp2) |
| \< \> |
This is an extension to GNU regex. It is not compatible to the GNU
implementation!
| These meta characters allows you to define case insensitive regular expressions,
so you don't have to give each combination of possible regular expressions. |