![H3C S5120-SI Series Скачать руководство пользователя страница 616](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174616.webp)
1-20
Character
Meaning
Remarks
|
Vertical bar, used to match the
whole string on the left or right
of it
For example, “def|int” can only match a
character string containing “def” or “int”.
_
Underline. If it is at the
beginning or the end of a
regular expression, it equals ^
or $; in other cases, it equals
comma, space, round bracket,
or curly bracket.
For example, “a_b” can match “a b” or
“a(b”; “_ab” can only match a line
starting with “ab”; “ab_” can only match a
line ending with “ab”.
-
Hyphen. It connects two values
(the smaller one before it and
the bigger one after it) to
indicate a range together with
[ ].
For example, “1-9” means numbers from
1 to 9 (inclusive); “a-h” means from a to h
(inclusive).
[ ]
A range of characters, Matches
any character in the specified
range.
For example, [16A] can match a string
containing any character among 1, 6,
and A; [1-36A] can match a string
containing any character among 1, 2, 3,
6, and A (with - being a hyphen).
“]” can be matched only when it is put at
the beginning of [ ] if it is used as a
common character in [ ], for example
[ ]
string
]. There is no such limit on “[”.
( )
A character group. It is usually
used with “+” or “*”.
For example, (123A) means a character
group “123A”; “408(12)+” can match
40812 or 408121212. But it cannot
match 408.
\index
Repeats a specified character
group for once. A character
group refers to the string in ()
before \.
index
refers to the
sequence number (starting from
1 from left to right) of the
character group before \: if only
one character group appears
before \, then
index
can only be
1; if n character groups appear
before
index
, then
index
can be
any integer from 1 to n.
For example, (
string
)\1 means to repeat
string
for once, and (
string
)\1 must
match a string containing
stringstring;
(
string1
)(
string2
)\2 means to repeat
string2
for once, and (
string1
)(
string2
)\2
must match a string containing
string1string2string2;
(
string1
)(
string2
)\1\2 means to repeat
string1
for once first
,
and then repeat
string2 for once
, and
(
string1
)(
string2
)\1\2 must match a string
containing
string1string2string1string2.
[^]
Used to match any character
not in a specified range.
For example, [^16A] means to match a
string containing any character except 1,
6 or A, and the string can also contain 1,
6 or A, but cannot contain these three
characters only. For example, [^16A]
can match “abc” and “m16”, but not 1,
16, or 16A.
\<
string
Used to match a character
string starting with
string
.
For example, “\<do” can match word
“domain” or string “doa”.
string
\>
Used to match a character
string ending with
string
.
For example, “do\>” can match word
“undo” or string “abcdo”.
Содержание S5120-SI Series
Страница 61: ...7 8 Sysname ip http acl 2030...
Страница 138: ...2 10 PORT VLAN MODE GigabitEthernet1 0 1 2 MANUAL...
Страница 186: ...1 46 Instance Vlans Mapped 0 1 to 9 11 to 19 21 to 29 31 to 4094 1 10 2 20 3 30...
Страница 218: ...ii Displaying and Maintaining BOOTP Client Configuration 4 2 BOOTP Client Configuration Example 4 3...
Страница 255: ...1 12...
Страница 381: ...ii Troubleshooting RADIUS 1 32...
Страница 577: ...1 8 Return to the upper directory Sysname cd Display the current working directory Sysname pwd flash...