in reply to working with \Q and \E

use the quotemeta-function on your input to escape the special characters that affect the regex.

sillyness, striked. thanks, dave_the_m.


holli, /regexed monk/

Replies are listed 'Best First'.
Re^2: working with \Q and \E
by dave_the_m (Monsignor) on Feb 24, 2005 at 20:28 UTC
    use the quotemeta-function
    but that's what he's doing: \Q and \E are just shortcuts for calling quotemeta()

    Dave.