[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
13.2.15 Looking ahead and behind
You can have assertions in your pattern that look
ahead or behind to ensure that a subpattern does
or does not occur. These “look around” assertions are
specified by putting the subpattern checked for in a
cluster whose leading characters are: ?=
(for positive
lookahead), ?!
(negative lookahead), ?<=
(positive lookbehind), ?<!
(negative lookbehind).
Note that the subpattern in the assertion does not
generate a match in the final result. It merely allows
or disallows the rest of the match.
This document was generated on March 31, 2014 using texi2html 5.0.