Cisco Active Network Abstraction Customization User Guide, 3.6.6
Regular Expressions

Table Of Contents

Regular Expressions for Cisco ANA Shell


Regular Expressions for Cisco ANA Shell


Cisco ANA shell uses the following regular expressions:

Wildcard
Meaning

%

Matches any string of zero or more characters.

-

Matches any one character.

[token]

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

There are two ways to format a token:

Range

Start-stop:

Start is the beginning of the character range.

The dash ( - ) is a special character indicating a range.

Stop is the end of the character range.

Set

Comprises discrete character values in any order.

Examples:

[a4Bc]

[abcdefg]

[^token]

The caret ( ^ ) before a token indicates noninclusion.

Example: [^c-g] means any character that is not c, d, e, f, or g.