Cisco Systems Cisco IOS XR Manual De Usuario
A-1
Cisco IOS XR Getting Started Guide
OL-10957-02
A P P E N D I X
A
Understanding Regular Expressions, Special
Characters, and Patterns
Characters, and Patterns
This appendix describes the regular expressions, special or wildcard characters, and patterns that can be
used with filters to search through command output. The filter commands are described in the
used with filters to search through command output. The filter commands are described in the
. The following sections describe features you can use with
filters:
•
•
•
•
•
•
•
•
•
Regular Expressions
A regular expression is a pattern (a phrase, number, or more complex pattern):
•
Regular expressions are case sensitive and allow for complex matching requirements. Simple
regular expressions include entries like Serial, misses, or 138.
regular expressions include entries like Serial, misses, or 138.
•
Complex regular expressions include entries like 00210... , ( is ), or [Oo]utput.
A regular expression can be a single-character pattern or multiple-character pattern. That is, a regular
expression can be a single character that matches the same single character in the command output or
multiple characters that match the same multiple characters in the command output. The pattern in the
command output is referred to as a string.
expression can be a single character that matches the same single character in the command output or
multiple characters that match the same multiple characters in the command output. The pattern in the
command output is referred to as a string.
The simplest regular expression is a single character that matches the same single character in the
command output. Letter (A–Z and a–z), digits (0–9), and other keyboard characters (such as ! or ~) can
be used as a single-character pattern.
command output. Letter (A–Z and a–z), digits (0–9), and other keyboard characters (such as ! or ~) can
be used as a single-character pattern.