On Fri, Jun 29, 2007 at 03:03:42PM -0500, CAMPBELL, BRIAN D (BRIAN) wrote:
> Then if you want all chars to be treated literally, then I presume you
> want:
>   \%
> To be translated to:
>   \\\%
> So just adding your $esc to the left part of s/// should do the trick,
> right?

The \\% is translated to:

    \\\\%

Which leaves the % unescaped.

I'll just remove "\" from the input.  But thought this might be a
reasonably common situation (use % around a search string but not
allow % or _ to be special in the user data.

-- 
Bill Moseley
[EMAIL PROTECTED]

Reply via email to