User's Manual

useranysvc-httpsredirectesi-grouphttps-proxiesdirectionboth
anyanypermit
Understanding Basic Regular Expression (BRE) Syntax
The ESI syslog parser supports regular expressions created using the Basic Regular Expression (BRE) syntax
described in this section. BRE syntax consists of instructions—character-matching operators (described in
Table 220), repetition operators (described in Table 221), or expression anchors (described in Table 222)—used
to defined the search or match target.
This section contains the following topics:
l “Character-Matching Operators” on page512
l “Regular Expression Repetition Operators” on page513
l “Regular Expression Anchors” on page513
l “References” on page514
Character-Matching Operators
Character-matching operators define what the search will match.
Operator Description Sample Result
. Match any one character. grep.ord sample.txt Matches ford, lord, 2ord, etc. in
the file sample.txt.
[] Match any one character listed
between the brackets
grep [cng]ord sample.txt Matches only cord, nord, and
gord
[^] Match any one character not
listed between the brackets
grep [^cn]ord sample.txt Matches lord, 2ord, etc., but
not cord or nord
grep [a-zA-Z]ord
sample.txt
Matches aord, bord, Aord,
Bord, etc.
grep [^0-9]ord sample.txt Matches Aord, aord, etc., but
not 2ord, etc.
Table 220: Character-matching operators in regular expressions
Regular Expression Repetition Operators
Repetition operators are quantifiers that describe how many times to search for a specified string. Use them
in conjunction with the character-matching operators in Table 221 to search for multiple characters.
Dell Networking W-Series ArubaOS 6.4.x | User Guide External Services Interface | 1016