|
|
| Using Regular Expressions |
|
|
| Pattern Matching |
Table | Description of Special Characters in Regular Expressions | ||
|
|
|
|
| To… | Use… | Example |
|
|
|
|
| Exclude specified | [^] | When the caret (^) |
| values. |
| appears first within the |
|
|
| list of bracketed valid |
|
|
| values, it is used to |
|
|
| exclude all of the |
|
|
| characters that follow |
|
|
| it. For example, to |
|
|
| match ab or any |
|
|
| character other than 5, |
|
|
| enter: |
|
|
| ab[^5] |
|
|
| Otherwise, ^ represents |
|
|
| a literal character. For |
|
|
| example, to match ab^ |
|
|
| or ab5, enter: |
|
|
| ab[5^] |
|
|
|
|
Appendix C | 357 |