Does this help?

<cfset newUrl = "http://www.newurl.com";>
<cfset urlToReplace = "http://www.oldurl.com";>
<cfset body = "String with links in it">

<cfset body = replaceNoCase(body,urlToReplace,(newUrl &
urlToReplace),ALL)>

Very small modifications should be made if you are working with url
parameters.

Micha Schopman
Project Manager

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380

------------------------------------------------------------------------
------------------------------------------------------------------------
-----
Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren
de interactie met uw doelgroep. 
Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer
informatie zie www.modernmedia.nl 
------------------------------------------------------------------------
------------------------------------------------------------------------
-----

-----Original Message-----
From: Dave Phillips [mailto:[EMAIL PROTECTED] 
Sent: woensdag 23 maart 2005 4:03
To: CF-Talk
Subject: Extracting/Replacing URL's from text

Hi folks,
 
I have a routine that needs to scan a body of text, grab all URL's in
that
text, replace them with a different URL and append the URL found on to
the
end of the new one.  I'm looking specifically for function of CF Tag
that
will 'replace' URL's in a body of text or at the very least 'extract'
them
(then I can do the replace with replacenocase).
 
Anyone know of anything?
 
Thanks!
 
Sincerely,
 
Dave Phillips
 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199741
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to