in reply to build regexp on a list of patterns
use Regex::PreSuf; my $re = presuf(qw(foobar fooxar foozap)); # $re should be now 'foo(?:zap|[bx]ar)' [download]
-Mark