in reply to Re: pattern matching words in any order
in thread pattern matching words in any order

False positive:

#!/usr/bin/perl use warnings; use strict; # 802936 my $zipFile="foo bar this this blivitz"; if ( $zipFile =~ /(this|that).*?(this|that)/i ) { print "$1 $2"; }else{ print "nope"; }