Hey all, I would like to perform regex's, but to accept a specific number of errors. So for instance, I would like to accept:
my $value '23DX-245C'; if ($value =~ /\d{2}\s{2}-\d{2}\s{1}/) { print "Matched\n"; }
Because the difference between the pattern and the actual value is only one character (an inserted digit). I have one lead already from a CPAN search, but I was wondering if any monks had any experience with this kind of thing.
In reply to Fuzzy Matching by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |