KW.pm
Regular Expressions
#10
Positional Assertions
Some metasymbols don't match characters in strings, but rather positions.
^
and
$
are well known examples of this
Assertions have no (character) width in a string match
\b
matches at a word boundary. Between whitespace and non-whitespace:
/chris\b/ # Matches "chris calzonetti" but not "christmas"
There are others which you'll see later
<< Previous
|
Index
|
Next >>
Copyright © 2002
Christopher Calzonetti