RE: Extracting/Replacing URL's from text

2005-03-23 Thread Pascal Peters
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

RE: Extracting/Replacing URL's from text

2005-03-23 Thread Micha Schopman
- -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

RE: Extracting/Replacing URL's from text

2005-03-22 Thread Micha Schopman
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

RE: Extracting/Replacing URL's from text

2005-03-22 Thread Dave Phillips
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