![Cisco ASA 5512-X Скачать руководство пользователя страница 144](http://html.mh-extra.com/html/cisco/asa-5512-x/asa-5512-x_configuration-manual_63717144.webp)
6-16
Cisco ASA Series Firewall CLI Configuration Guide
Chapter 6 Getting Started with Application Layer Protocol Inspection
Configure Regular Expressions
Procedure
Step 1
Test a regular expression to make sure it matches what you think it will match.
*
Asterisk
A quantifier that indicates that there are 0, 1 or any
number of the previous expression. For example,
lo*se
matches lse, lose, loose, and so on.
+
Plus
A quantifier that indicates that there is at least 1 of the
previous expression. For example,
lo+se
matches lose
and loose, but not lse.
{
x
}
or
{
x
,}
Minimum repeat quantifier
Repeat at least
x
times. For example,
ab(xy){2,}z
matches abxyxyz, abxyxyxyz, and so on.
[
abc
]
Character class
Matches any character in the brackets. For example,
[abc]
matches a, b, or c.
[^
abc
]
Negated character class
Matches a single character that is not contained within
the brackets. For example,
[^abc]
matches any character
other than a, b, or c.
[^A-Z]
matches any single
character that is not an uppercase letter.
[
a
-
c
]
Character range class
Matches any character in the range.
[a-z]
matches any
lowercase letter. You can mix characters and ranges:
[abcq-z]
matches a, b, c, q, r, s, t, u, v, w, x, y, z, and so
does [
a-cq-z]
.
The dash (-) character is literal only if it is the last or the
first character within the brackets:
[abc-]
or
[-abc]
.
“”
Quotation marks
Preserves trailing or leading spaces in the string. For
example,
“ test”
preserves the leading space when it
looks for a match.
^
Caret
Specifies the beginning of a line.
\
Escape character
When used with a metacharacter, matches a literal
character. For example,
\[
matches the left square
bracket.
char
Character
When character is not a metacharacter, matches the
literal character.
\r
Carriage return
Matches a carriage return 0x0d.
\n
Newline
Matches a new line 0x0a.
\t
Tab
Matches a tab 0x09.
\f
Formfeed
Matches a form feed 0x0c.
\x
NN
Escaped hexadecimal number
Matches an ASCII character using hexadecimal (exactly
two digits).
\
NNN
Escaped octal number
Matches an ASCII character as octal (exactly three
digits). For example, the character 040 represents a
space.
Table 6-3
Regular Expression Metacharacters (continued)
Character Description
Notes
Содержание ASA 5512-X
Страница 5: ...P A R T 1 Service Policies and Access Control ...
Страница 6: ......
Страница 50: ...3 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 3 Access Rules History for Access Rules ...
Страница 51: ...P A R T 2 Network Address Translation ...
Страница 52: ......
Страница 126: ...5 28 Cisco ASA Series Firewall CLI Configuration Guide Chapter 5 NAT Examples and Reference DNS and NAT ...
Страница 127: ...P A R T 3 Application Inspection ...
Страница 128: ......
Страница 255: ...P A R T 4 Connection Settings and Quality of Service ...
Страница 256: ......
Страница 288: ...12 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 12 Quality of Service History for QoS ...
Страница 303: ...P A R T 5 Advanced Network Protection ...
Страница 304: ......
Страница 339: ...P A R T 6 ASA Modules ...
Страница 340: ......
Страница 398: ...17 28 Cisco ASA Series Firewall CLI Configuration Guide Chapter 17 ASA CX Module History for the ASA CX Module ...