in reply to Regular Expression
You can do this a variety of ways, but here are three:
$string =~ m/abc.*xyz|xyz.*abc/i $string =~ m/(?=.*abc)(?=.*xyz)/i; $string =~ /abc/i and $string =~ /xyz/i
The ampersands inside the regular expression will be matched as ampersands and not used as logical operators.
-enlil
In Section
Seekers of Perl Wisdom