in reply to Regular Expression
$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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Regular Expression
by nobull (Friar) on Feb 09, 2005 at 20:14 UTC |