On Dec 30, 2003, at 12:30 PM, Randy W. Sims wrote:
If you have a string that is going to need escaping, consider
using /\Q$string\U/ to handle quoting regex special chars.

Right -- but that should be \E (for "end") instead of \U (the mnemonic for which is "uppercase", not "unquote").

    % perl -le 'print "\Qxxx\Uyyy"'
    xxxYYY

--
Steve


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to