ADTRAN AOS Version R10.1.0 Command Reference Manual page 1364

Adtran operating system (aos)
Table of Contents

Advertisement

Command Reference Guide
In regular expressions number matching, the match strings are encapsulated by paired / (slash) symbols.
This indicates that the pattern is to be treated as a regular expression. Using regular expressions allows
greater flexibility in matching multiple number templates with fewer expressions.
AOS is compatible with Perl compatible regular expressions (PCREs). More information on
understanding and using regular expressions is available at http://www.pcre.org.
v
The use of quotation marks in a command syntax, when entering a string is not necessary
unless the string requires using a space or ?. Using either of these characters outside of
quotation marks is interpreted by the command line interface (CLI) as a command and is
not recognized as part of the string. The use of quotation marks in the following examples
are provided to cover all possible user-entered strings. These examples can be entered
without the quotation marks and function in the same manner.
Usage Examples
The following is a sample response using the test template match command with traditional number
matching:
(config)#test template match "5551234" to "555XXXX"
Match Result -> Match
The following is a sample response using the test template match command with regular expression
matching:
(config)#test template match "5551234" to "/555\d{4}/"
Match Result -> Match
The following is a sample response using the test template match <string> to <pattern>
substitute-using <pattern> command with traditional number matching:
(config)#test template match "5551234" to "555XXXX" substitute-using "1359555XXXX"
Substitute Result -> 13595551234
The following is a sample response using the test template match <string> to <pattern>
substitute-using <pattern> command with regular expression matching:
(config)#test template match "5552121DE" to "/(\d+).*/" substitute-using "/\1/"
Substitute Result -> 5552121
60000CRG0-35E
Copyright © 2012 ADTRAN, Inc.
Global Configuration Mode Command Set
1364

Advertisement

Table of Contents
loading

Related Products for ADTRAN AOS Version R10.1.0

This manual is also suitable for:

Aos r10.1.0

Table of Contents