[Python-porting] Pattern help!?

Fred Drake fdrake at acm.org
Thu Nov 18 15:08:24 CET 2010


On Thu, Nov 18, 2010 at 7:48 AM, M.-A. Lemburg <mal at egenix.com> wrote:
> you can use a negative lookahead:
>
> (?!bar\.)foo

This is normally called a negative lookbehind, though.


  -Fred

--
Fred L. Drake, Jr.    <fdrake at acm.org>
"A storm broke loose in my mind."  --Albert Einstein


More information about the Python-porting mailing list