Regular Expressions; Understanding Regular Expressions, Special Characters, And Patterns - Cisco CRS-1 - Carrier Routing System Router Getting Started Manual

Carrier routing system
Hide thumbs Also See for CRS-1 - Carrier Routing System Router:
Table of Contents

Advertisement

Understanding Regular Expressions, Special
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
show Command Output" section on page
filters:

Regular Expressions

A regular expression is a pattern (a phrase, number, or more complex pattern):
A regular expression can be a single-character pattern or a 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.
The simplest regular expression is a single character that matches the same single character in the
command output. Letter (A–Z, a–z), digits (0–9), and other keyboard characters (such as ! or ~) can be
used as a single-character pattern.
Regular Expressions, page C-1
Special Characters, page C-2
Character Pattern Ranges, page C-2
Multiple-Character Patterns, page C-3
Complex Regular Expressions Using Multipliers, page C-3
Pattern Alternation, page C-4
Anchor Characters, page C-4
Underscore Wildcard, page C-4
Parentheses Used for Pattern Recall, page C-4
Regular expressions are case sensitive and allow for complex matching requirements. Simple
regular expressions include entries like Serial, misses, or 138.
Complex regular expressions include entries like 00210... , ( is ), or [Oo]utput.
A P P E N D I X
3-9. The following sections describe features you can use with
Cisco CRS-1 Series Carrier Routing System Getting Started Guide
C
"Filtering
C-1

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Crs-1 series

Table of Contents