in reply to Regular Expression Help
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
|
|---|