1-15
Cisco ASA Series CLI Configuration Guide
Chapter 1 Configuring Objects
Configuring Objects
lists the metacharacters that have special meanings.
Table 1-1
regex Metacharacters
Characte
r
Description
Notes
.
Dot
Matches any single character. For example,
d.g
matches
dog, dag, dtg, and any word that contains those
characters, such as doggonnit.
(
exp
)
Subexpression
A subexpression segregates characters from surrounding
characters, so that you can use other metacharacters on
the subexpression. For example,
d(o|a)g
matches dog
and dag, but
do|ag
matches do and ag. A subexpression
can also be used with repeat quantifiers to differentiate
the characters meant for repetition. For example,
ab(xy){3}z
matches abxyxyxyz.
|
Alternation
Matches either expression it separates. For example,
dog|cat
matches dog or cat.
?
Question mark
A quantifier that indicates that there are 0 or 1 of the
previous expression. For example,
lo?se
matches lse or
lose.
Note
You must enter
Ctrl+V
and then the question
mark or else the help function is invoked.
*
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.
Summary of Contents for 5505 - ASA Firewall Edition Bundle
Page 28: ...Glossary GL 24 Cisco ASA Series CLI Configuration Guide ...
Page 61: ...P A R T 1 Getting Started with the ASA ...
Page 62: ......
Page 219: ...P A R T 2 Configuring High Availability and Scalability ...
Page 220: ......
Page 403: ...P A R T 2 Configuring Interfaces ...
Page 404: ......
Page 499: ...P A R T 2 Configuring Basic Settings ...
Page 500: ......
Page 533: ...P A R T 2 Configuring Objects and Access Lists ...
Page 534: ......
Page 601: ...P A R T 2 Configuring IP Routing ...
Page 602: ......
Page 745: ...P A R T 2 Configuring Network Address Translation ...
Page 746: ......
Page 845: ...P A R T 2 Configuring AAA Servers and the Local Database ...
Page 846: ......
Page 981: ...P A R T 2 Configuring Access Control ...
Page 982: ......
Page 1061: ...P A R T 2 Configuring Service Policies Using the Modular Policy Framework ...
Page 1062: ......
Page 1093: ...P A R T 2 Configuring Application Inspection ...
Page 1094: ......
Page 1191: ...P A R T 2 Configuring Unified Communications ...
Page 1192: ......
Page 1333: ...P A R T 2 Configuring Connection Settings and QoS ...
Page 1334: ......
Page 1379: ...P A R T 2 Configuring Advanced Network Protection ...
Page 1380: ......
Page 1475: ...P A R T 2 Configuring Modules ...
Page 1476: ......
Page 1549: ...P A R T 2 Configuring VPN ...
Page 1550: ......
Page 1965: ...P A R T 2 Configuring Logging SNMP and Smart Call Home ...
Page 1966: ......
Page 2059: ...P A R T 2 System Administration ...
Page 2060: ......
Page 2098: ...1 8 Cisco ASA Series CLI Configuration Guide Chapter 1 Troubleshooting Viewing the Coredump ...
Page 2099: ...P A R T 2 Reference ...
Page 2100: ......