leftmost longest match (of disjunctions) ; greediness of "|"
Joerg Schuster
js at cis.uni-muenchen.de
Wed Dec 3 07:37:31 EST 2003
"Diez B. Roggisch" <deets_noospaam at web.de> writes:
> The only thing you can do to avoid is is to split your disjunctions and
> search separately, and afterwards takt the longest part. That could be done
> using a small grammar, that allows you to detect the disjunctions and
> create separate rexes for it.
>
> Diez
Thanks for the tip.
More information about the Python-list
mailing list