$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 reply to Re: Regular Expression
by Enlil
in thread Regular Expression
by FarTech
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |