If you want to roll your own, try
Replace the \w with . or [a-z], etc., according to what errors you want to accept.$what_matched = $1 if $string =~ /\b(\watch|m\wtch|ma\wch|mat\wh|matc\w)\b/;
-Mark
In reply to Re: 1 mismatch string matching
by kvale
in thread 1 mismatch string matching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |