Understanding Regular Expressions, Special Characters, And Patterns; Contents; Regular Expressions - Cisco XR 12000 Series Getting Started Manual

Hide thumbs Also See for XR 12000 Series:
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

Contents

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 multiple-character pattern. It 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. Letters (A to Z and a to z), digits (0 to 9), and other keyboard characters
(such as ! or ~) can be used as a single-character pattern.
OL-24755-01
Output.
Regular Expressions, page A-137
Special Characters, page A-138
Anchor Characters, page A-140
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
Cisco IOS XR Getting Started Guide for the Cisco XR 12000 Series Router
A
Filtering
A-137

Advertisement

Table of Contents
loading

Table of Contents