A SERVICE OF

logo

773 | ExternalServicesInterface DellPowerConnectW-SeriesArubaOS6.2 | User Guide
Operator Description Sample Result
^ Match at the beginning of a line s/^/blah/ Inserts “blah” at the beginning of the
line
$ Match at the end of a line s/$/blah/ Inserts “blah” at the end of the line
\< Match at the beginning of a word s/\</blah/ Inserts “blah” at the beginning of the
word
egrep “\<blah”
sample.txt
Matches
blahfield
, etc.
\> Match at the end of a word s/\>/blah/ Inserts “blah” at the end of the word
egrep “\>blah”
sample.txt
Matches
soupblah
, etc.
\b Match at the beginning or end of a
word
egrep “\bblah”
sample.txt
Matches
blahcake
and
countblah
\B Match in the middle of a word egrep “\Bblah”
sample.txt
Matches
sublahper
, etc.
Table 352:
Regular expression anchors
References
This implementation is based, in part, on the following resources:
l Lonvick, C., “The BSD syslog Protocol”, RFC3164, August 2001
l Regular expression (regex) reference: http://en.wikipedia.org/wiki/Regular_expression
l Regex syntax summary: http://www.greenend.org.uk/rjk/2002/06/regexp.html
l Basic regular expression (BRE) syntax: http://builder.com.com/5100-6372-1050915.html