in reply to 1 mismatch string matching
If you want to roll your own, try
$what_matched = $1 if $string =~ /\b(\watch|m\wtch|ma\wch|mat\wh|matc\w)\b/; [download]
-Mark