Huawei AR2200 Series Configuration Manual page 27

Enterprise routers
Hide thumbs Also See for AR2200 Series:
Table of Contents

Advertisement

Huawei AR2200 Series Enterprise Routers
Configuration Guide - Basic Configuration
l
Issue 02 (2011-10-15)
Particul
Syntax
ar
characte
r
x|y
Matches x or y.
[xyz]
Matches any single character in the
regular expression.
[^xyz]
Matches any character that is not
contained within the brackets.
[a-z]
Matches any character within the
specified range.
[^a-z]
Matches any character beyond the
specified range.
_
Matches a comma "," left brace "{",
right brace "}", left parenthesis "(",
and right parenthesis ")".
Matches the starting position of the
input string.
Matches the ending position of the
input string.
Matches a space.
NOTE
Unless otherwise specified, all characters in the preceding table are displayed on the screen.
Degeneration of particular characters
Certain particular characters, when being placed at the following positions in the regular
expression, degenerate to common characters.
– The particular characters following "\" is transferred to match particular characters
themselves.
– The particular characters "*", "+", and "?" placed at the starting position of the regular
expression. For example, +45 matches "+45" and abc(*def) matches "abc*def".
– The particular character "^" placed at any position except for the start of the regular
expression. For example, abc^ matches "abc^".
– The particular character "$" placed at any position except for the end of the regular
expression. For example, 12$2 matches "12$2".
– The right bracket such as ")" or "]" being not paired with its corresponding left bracket
"(" or "[". For example, abc) matches "abc)" and 0-9] matches "0-9]".
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
2 CLI Overview
Example
100|200 matches "100" or "200".
1(2|3)4 matches "124" or "134",
instead of "1234", "14", "1224", and
"1334".
[123] matches the character 2 in
"255".
[^123] matches any character except
for "1", "2", and "3".
[0-9] matches any character ranging
from 0 to 9.
[^0-9] matches all non-numeric
characters.
_2008_ matches "2008", "space
2008 space", "space 2008", "2008
space", ",2008,", "{2008}",
"(2008)", "{2008)", and "(2008}".
16

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents