in reply to Multiple Regex, it works but it aint clever
(From the perldoc:)
You could then do an s/$re//og, once you've built $re for your set of strings. --use Regex::PreSuf; my $re = presuf(qw(foobar fooxar foozap)); # $re should be now 'foo(?:zap|[bx]ar)'
|
|---|