Cisco Active Network Abstraction Shell User Guide, 3.6
Regular Expressions

Table Of Contents

Regular Expressions


Regular Expressions


Wildcard
Meaning

%

Matches any string of zero or more characters.

-

Matches any one character.

[token]

Brackets enclose ranges or set, such as [1-9] or [klmnopq].

There are two ways of formatting a token:

1. Range

Start-stop:

Start is the beginning of the character range.

"-" is a special character indicating a range.

Stop is the end of the character range.

2. Set

Comprises discrete character values in any order.

Examples - [a4Bc],[abcdefg]

[^token]

The caret "^" before a token indicates non-inclusion.

Examples - [^c-g] means any character that is not a `c', `d', `e', `f', or `g'.