
Using Regular Expressions
Pattern Matching
Table | Description of Special Characters in Regular Expressions | ||
|
|
|
|
| To… | Use… | Example |
|
|
|
|
| Match a range of | To match ab followed by | |
| values |
| any digit, enter: |
|
|
| |
|
|
| To match any digit |
|
|
| except 5, enter: |
|
|
| |
|
|
| Note that if you need to |
|
|
| match the dash |
|
|
| not place it between |
|
|
| any two characters that |
|
|
| could be interpreted as |
|
|
| a range of values. For |
|
|
| example, |
|
|
| interpreted as a range |
|
|
| of values, while |
|
|
| would not. To avoid |
|
|
| confusion, place it as |
|
|
| the first or last |
|
|
| character in your |
|
|
| string. For example, to |
|
|
| search for a dash |
|
|
| followed by any digit, |
|
|
| enter: |
|
|
| |
|
|
|
|
| Match the | ^match_expression | To match all |
| beginning of a line |
| occurrences of stack |
|
|
| that occur at the |
|
|
| beginning of a line, |
|
|
| enter: |
|
|
| ^stack |
|
|
|
|
358 | Appendix C |