PROTECTED]
Sent: 23 March 2005 08:37
To: CF-Talk
Subject: RE: Extracting/Replacing URL's from text
Actually, this is a bit too simplified because what I needed was a way
to
search for url's in a body of text without knowing what they are.
Here's
what I came up with...a little custom tag called
-
-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED]
Sent: woensdag 23 maart 2005 8:37
To: CF-Talk
Subject: RE: Extracting/Replacing URL's from text
Actually, this is a bit
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
Actually, this is a bit too simplified because what I needed was a way to
search for url's in a body of text without knowing what they are. Here's
what I came up with...a little custom tag called CF_GetLinkList.
If anyone can find holes in this, let me know...so far it seems to be
working
4 matches
Mail list logo