|
This appendix explains regular expressions and how to use them in router configurations. (Refer to the LightStream 1010 ATM Switch Software Configuration Guide for more information.) It also provides details for composing regular expressions. This appendix has the following sections:
· Understanding General Concepts
· Creating Regular Expressions
· Working With Practical Examples
A regular expression is a pattern to match against an input string. You specify the pattern that a string must match when you compose a regular expression. Matching a string to the specified pattern is called "pattern matching." Pattern matching either succeeds or fails.
For example, you can specify in an X.25 routing table that incoming packets with destination addresses beginning with 3107 are routed to serial interface 0. In this example, the pattern to match is the 3107 specified in the X.25 routing table. The string is the initial portion of the destination address of any incoming X.25 packet. When the destination address string matches the 3107 pattern,
Posted: Thu Jan 23 20:54:32 PST 2003
All contents are Copyright © 1992--2002 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.