in reply to precompiling regular expressions

try:
$string2 = qr/$string2/; $string1 =~ $string2;

Replies are listed 'Best First'.
Re^2: precompiling regular expressions
by Anonymous Monk on Oct 22, 2010 at 02:51 UTC
    I need s(ubstitute) and I need the /g option :/