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 -- http://mail.python.org/mailman/listinfo/python-list