in reply to regex matches with () in strings

($extra_path = $srcdir) =~ s/^\Q$srcroot\E//;

Replies are listed 'Best First'.
Re^2: regex matches with () in strings
by robinbowes (Beadle) on Feb 17, 2005 at 02:25 UTC
    I was just coming back to say I'd found \Q \E in perldoc perlop but it appears two of you have beat me to it!

    Thanks!

    R.

    --

    Robin Bowes | http://robinbowes.com