Re: escaping % AND \%
- From: moseley@xxxxxxxx (Bill Moseley)
- Date: Fri, 29 Jun 2007 16:57:55 -0700
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
moseley@xxxxxxxx
.
- Follow-Ups:
- RE: escaping % AND \%
- From: Brian D Campbell
- RE: escaping % AND \%
- References:
- Re: escaping % AND \%
- From: Raf
- Re: escaping % AND \%
- From: Bill Moseley
- RE: escaping % AND \%
- From: Brian D Campbell
- Re: escaping % AND \%
- Prev by Date: Re: next version of DBD::ODBC including available unicode patch?
- Next by Date: RE: escaping % AND \%
- Previous by thread: RE: escaping % AND \%
- Next by thread: RE: escaping % AND \%
- Index(es):