I just had another idea. Depending on the size of your search space, you might be interested in the thread
. In
I gave a program that generates all matching strings for RegExes with certain limitaions. You could extend the program to suit your needs (e.g. add
) and then calculate the minimal distance from your input to the possible matches.