Regexp : repeated group identification
Vlastimil Brom
vlastimil.brom at gmail.com
Wed Dec 14 08:38:36 EST 2011
2011/12/14 candide <candide at free.invalid>:
...
>
> Thanks for the reference and the example. I didn't know of this
> reimplementation, hoping it offers the Aho-Corasick algorithm allowing
> multiple keys search.
> --
> http://mail.python.org/mailman/listinfo/python-list
Hi,
I am not sure about the underlying algorithm (it could as well be an
internal expansion of the alternatives like ...|...|...), but you can
use a list (set, actually) of alternatives to search for.
check the "named lists" feature,
\L<...>
hth,
vbr
More information about the Python-list
mailing list