I came up with following -
perl -e '$a = "abc print pqr scan xyz"; print "matched\n" if($a =~ /(? +=.*(?=scan))(?=.*(?=print))/)' matched
In reply to Re: Multiple Match (Sort of AND)
by samarzone
in thread Multiple Match (Sort of AND)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |