Typing this in email - so it may not work :) <cfset NewContent=reReplaceNoCase(FileContent,"(http:\/\/|www.)([^\s]+)[\s]","<A HREF=""\1\2"">\1\2</A> ","ALL")>
(NOTE: it doesn't handle if there is no space after a tag.) Jerry Johnson >>> [EMAIL PROTECTED] 04/03/02 03:17PM >>> actually i meant a function to search through text to find the patter "http://" OR "www." and returns that entire string (to the next space) back with <a href=""> tags around it -chris.alvarado [application.developer] 4 Guys Interactive, Inc. -----Original Message----- From: Park, Simon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 11:20 AM To: CF-Talk Subject: RE: UDF or Custom Tag <CFSCRIPT> function CreateHTMLLink(textin) { textout = "<a href='" & textin & "'>" & textin & "</a>"; return textout; } </CFSCRIPT> <CFOUTPUT> #CreateHTMLLink("http://www.yahoo.com")# </CFOUTPUT> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Simon Park Computer Systems Management, Inc. Director, E-Business 205 South Whiting Street #201 Ph: 703-823-4300 x119 Alexandria, VA 22304 fax: 703-823-4301 http://www.csmi.com > -----Original Message----- > From: chris.alvarado [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 03, 2002 11:45 AM > To: CF-Talk > Subject: UDF or Custom Tag > > > does anyone have a UDF or Custom tag that will turn, > > http://www.yahoo.com into <a > href="http://www.yahoo.com">http://www.yahoo.com</a> > > > i would just build it myself but im swamped. > > thanks a million. > > -chris.alvarado > [application.developer] > 4 Guys Interactive, Inc. > > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

