Confused about 'positive lookbehind assertion'

Robert Dailey rcdailey at gmail.com
Mon Sep 24 22:38:16 EDT 2007


Hi,

I've been reading the python documentation on 'positive lookbehind
assertion' and I don't understand at all how it works. The python docs give
the following example:

"**(?<=abc)def will find a match in "abcdef", since the lookbehind will back
up 3 characters and check if the contained pattern matches."

Can anyone emphasize more on what this RE operation does? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070924/e4883a47/attachment.html>


More information about the Python-list mailing list