That would work if it was in the query string. He's trying to URL
encode a query string as part of a larger string... not the query
string he's receiving. But honestly it shouldn't be necessary, since
most (all?) clients will handle that for you.
-dhs
Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
"What is objectionable, what is dangerous about extremists is not
that they are extreme, but that they are intolerant."
-- Robert F. Kennedy, 1964
On Jun 5, 2007, at 12:46 PM, Jeff Howard wrote:
I used to have to do regular expression stuff a lot (and in a
language called Vortex/Texis web-script) but haven't lately.
My best guess is:
REReplace (CGI.Query_String, " ", "+","ALL")
or if it is URLEncoded
REReplace(URLDecode(CGI.Query_String), " ", "+","ALL")
think that'll do it but haven't used much regular expression in CF.
On 6/5/07, Steven Ross <[EMAIL PROTECTED]> wrote:
in this string:
<p><b>15) <a href="http://blah.com?search=Some Lingering Suspicion"
target="_blank">"A Lingering Suspicion"</a></b></p>
i want to search for the spaces inside:
?search=Some Lingering Suspicion
and replace those spaces with + so it should end up looking like this:
?search=Some+Lingering+Suspicion
Can this be done?
thanks,
Steven
--
Steven Ross
web application & interface developer
http://www.zerium.com
[mobile] 404-488-4364
[fax] 267-482-4364
-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------
-------------------------------------------------------------
Annual Sponsor - Figleaf Software
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-------------------------------------------------------------