in reply to regexp match arg1 AND arg2

Your predicament is very similar to Dynamic regexp from array values so you'll find many an appropriate answer there.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: regexp match arg1 AND arg2
by Jaap (Curate) on Feb 17, 2003 at 16:32 UTC
    Thank you. Although not one regexp, the other topic had a shorter way to do it:
    doSomething() if grep $data =~ /\Q$_/, @vals;
    That should match all in no particular order.