August 2003
Intermediate to advanced
1104 pages
19h 27m
English
At the highest level, a regular expression is one or more branches separated by the vertical bar character (|). This character is considered to have the properties of a logical-OR. Any of the branches could match with an evaluated string. Table 22.1 provides a few examples.
| Sample | Description |
|---|---|
| Apple | Matches the word apple. |
| apple|ball | Matches either apple or ball. |
| begin|end|break | Matches either begin, end, or break. |
Each branch contains one or more atoms. Characters that modify the number of times the atom may be matched in succession may follow these atoms. An asterisk (*) means the atom can match any number of times. A plus sign (+) means the atom must match at least once. ...
Read now
Unlock full access