Cisco ASA 5505 Configuration Manual page 320

Asa 5500 series
Hide thumbs Also See for ASA 5505:
Table of Contents

Advertisement

Configuring Regular Expressions
Table 13-1
Character Description
[a-c]
""
^
\
char
\r
\n
\t
\f
\xNN
\NNN
Detailed Steps
Configuration > Global Objects > Regular Expressions > Add/Edit a Regular Expression Fields
Examples
The following example creates two regular expressions for use in an inspection policy map:
regex url_example example\.com
regex url_example2 example2\.com
Cisco ASA 5500 Series Configuration Guide using ASDM
13-12
regex Metacharacters (continued)
Character range class
Quotation marks
Caret
Escape character
Character
Carriage return
Newline
Tab
Formfeed
Escaped hexadecimal number
Escaped octal number
Name—Enter the name of the regular expression, up to 40 characters in length.
Value—Enter the regular expression, up to 100 characters in length. You can enter the text manually,
using the metacharacters in
Expression
dialog box.
Build—Helps you build a regular expression using the
Test—Tests a regular expression against some sample text.
Notes
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].
Preserves trailing or leading spaces in the string. For
example, "test" preserves the leading space when it
looks for a match.
Specifies the beginning of a line.
When used with a metacharacter, matches a literal
character. For example, \[ matches the left square
bracket.
When character is not a metacharacter, matches the
literal character.
Matches a carriage return 0x0d.
Matches a new line 0x0a.
Matches a tab 0x09.
Matches a form feed 0x0c.
Matches an ASCII character using hexadecimal (exactly
two digits).
Matches an ASCII character as octal (exactly three
digits). For example, the character 040 represents a
space.
Table
13-1, or you can click Build to use the
Chapter 13
Building a Regular
Building a Regular Expression
Configuring Objects
:
dialog box.
OL-20339-01

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Asa 5510Asa 5540Asa 5520Asa 5550Asa 5580

Table of Contents