
Chapter 1
Using the CLI String Search
Table
Character | Special Meaning |
|
|
^ | Matches the beginning of the string. |
|
|
$ | Matches the end of the string. |
|
|
_ (underscore) | Matches a comma (,), left brace ({), right brace (}), left parenthesis ( ( ), |
| right parenthesis ( ) ), the beginning of the string, the end of the string, or a |
| space. |
|
|
To enter these special characters as
\$ \_ \+
You can specify a range of
[aeiou]
matches any one of the five vowels of the lowercase alphabet, while
[abcdABCD]
matches any one of the first four letters of the lower- or uppercase alphabet.
You can simplify ranges by entering only the end points of the range separated by a dash
[a-dA-D]
To add a dash as a
[a-dA-D\-]
You can also include a right square bracket (]) as a
[a-dA-D\-\]]
The previous example matches any one of the first four letters of the lower- or uppercase alphabet, a dash, or a right square bracket.
You can reverse the matching of the range by including a caret (^) at the start of the range. This example matches any letter except the ones listed:
[^a-dqsv]
This example matches anything except a right square bracket (]) or the letter d:
[^\]d]
Catalyst 6500 Series Switch SSL Services Module Command Reference
|
| |
|