fastest way for humongous regexp search?

Istvan Albert ialbert at mailblocks.com
Mon Nov 1 18:08:47 CET 2004


Tim Arnold wrote:

> I've got a list of 1000 common misspellings, and I'd like to check a set of
> text files for those misspellings.

A much simpler way would be to just store these misspellings as a dictionary
(or set), read and split each line into words, then check whether each
of words is in the set.

Istvan



More information about the Python-list mailing list