December 2002
Intermediate to advanced
1616 pages
39h 57m
English
A regular expression defines a set of one or more strings of characters. A regular expression is said to match any string it defines.
| . | Matches any single character |
| * | Matches zero or more occurrences of a match of the preceding character |
| ^ | Forces a match to the beginning of a line |
| $ | A match to the end of a line |
| \ | Used to quote special characters |
| \< | Forces a match to the beginning of a word |
| \> | Forces a match to the end of a word |
| [xyz] | Defines a character class that matches x, y, or z |
| [^ xyz] | Defines a character class that matches any character except x, y, or z |
| [x–z] | Defines a character class that matches any character x through z inclusive |
| \( xyz\) | Matches ... |
Read now
Unlock full access