Regular Expressions: large amount of or's
John Machin
sjmachin at lexicon.net
Sun Mar 13 06:45:17 EST 2005
Daniel Yoo wrote:
>
> Here you go:
>
> http://hkn.eecs.berkeley.edu/~dyoo/python/ahocorasick/
>
> This provides an 'ahocorasick' Python C extension module for doing
> matching on a set of keywords. I'll start writing out the package
> announcements tomorrow.
>
Looks good.
However:
tree.search("I went to alpha beta the other day to pick up some spam")
could use a startpos (default=0) argument for efficiently restarting
the search after finding the first match
More information about the Python-list
mailing list