Dealing with synonyms for comapny, co. and inc. are a bit more difficult. You could either strip these out of the string or special case them in the "and" loop.@words = split $string; $found = 1; foreach my $word (@words) { unless ($file =~ /$word/ ) { $found = 0; $last; } } print "Found: $string" if $found;
-Mark
In reply to Re: Regular Expression Help
by kvale
in thread Regular Expression Help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |