Wildcards for regexps?

Timothy Grant timothy.grant at gmail.com
Mon Aug 11 11:33:54 EDT 2008


On Sun, Aug 10, 2008 at 9:10 PM, ssecorp <circularfunc at gmail.com> wrote:
> If I have an expression like "bob marley" and I want to match
> everything with one letter wrong, how would I do?
> so "bob narely" and "vob marley" should match etc.

At one point I needed something like this so did a straight port of
the double-metaphone code to python.

It's horrible, it's ugly, it's non-pythonic in ways that make me
cringe, it has no unit tests, but it does work.

-- 
Stand Fast,
tjg.  [Timothy Grant]



More information about the Python-list mailing list