(mostly-)POSIX regular expressions

Sébastien Boisgérault Sebastien.Boisgerault at gmail.com
Sun May 28 23:46:33 CEST 2006


Paddy a écrit :

> maybe this: http://www.pcre.org/pcre.txt and ctypes might work for you?

Well finally, it doesn't fit. What I need is a "longest match" policy
in
patterns like "(a)|(b)|(c)" and NOT a "left-to-right" policy.
Additionaly,
I need to be able to obtain the matched ("captured") substring and
the PCRE does not allow this in DFA mode.

Too bad ...

SB




More information about the Python-list mailing list