in reply to Re^2: Make a variable safe for a regex.
in thread Make a variable safe for a regex.

\Q and quotemeta() are the same function.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

  • Comment on Re^3: Make a variable safe for a regex.

Replies are listed 'Best First'.
Re^4: Make a variable safe for a regex.
by Anno (Deacon) on Feb 26, 2007 at 08:32 UTC
    True, but kyle's alternative (which I compared with quotemeta) isn't based on \Q.

    Anno