Regular Expressions: large amount of or's

John Machin sjmachin at
Sun Mar 13 12:45:17 CET 2005

Daniel Yoo wrote:
> Here you go:
> 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:"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