Cisco ASA 5505 Configuration Manual page 322

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

Advertisement

Configuring Regular Expressions
Regular Expression—This area includes regular expression text that you can enter manually and build
with snippets. You can then select text in the Regular Expression field and apply a quantifier to the
selection.
Testing a Regular Expression
The Configuration > Global Objects > Regular Expressions > Add/Edit a Regular Expression > Test
Regular Expression dialog box lets you test input text against a regular expression to make sure it
matches as you intended.
Detailed Steps
Cisco ASA 5500 Series Configuration Guide using ASDM
13-14
Two digit hexadecimal number—Matches an ASCII character using hexadecimal (exactly two
digits). The backslash (\) is entered automatically.
Specified character—Enter any single character.
Snippet Preview—Display only. Shows the snippet as it will be entered in the regular expression.
Append Snippet—Adds the snippet to the end of the regular expression.
Append Snippet as Alternate—Adds the snippet to the end of the regular expression separated by a
pipe (|), which matches either expression it separates. For example, dog|cat matches dog or cat.
Insert Snippet at Cursor—Inserts the snippet at the cursor.
Selection Occurrences—Select text in the Regular Expression field, click one of the following
options, and then click Apply to Selection. For example, if the regular expression is "test me," and
you select "me" and apply One or more times, then the regular expression changes to "test (me)+".
Zero or one times (?)—A quantifier that indicates that there are 0 or 1 of the previous
expression. For example, lo?se matches lse or lose.
One or more times (+)—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.
Any number of times (*)—A quantifier that indicates that there are 0, 1 or any number of the
previous expression. For example, lo*se matches lse, lose, loose, etc.
At least—Repeat at least x times. For example, ab(xy){2,}z matches abxyxyz, abxyxyxyz, etc.
Exactly—Repeat exactly x times. For example, ab(xy){3}z matches abxyxyxyz.
Apply to Selection—Applies the quantifier to the selection.
Test—Tests a regular expression against some sample text.
Regular Expression—Enter the regular expression you want to test. By default, the regular
expression you entered in the Add/Edit Regular Expression or Build Regular Expression dialog box
is input into this field. If you change the regular expression during your testing, and click OK, the
changes are inherited by the Add/Edit Regular Expression or Build Regular Expression dialog
boxes. Click Cancel to dismiss your changes.
Test String—Enter a text string that you expect to match the regular expression.
Test—Tests the Text String against the Regular Expression,
Test Result—Display only. Shows if the test succeeded or failed.
Chapter 13
Configuring Objects
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