YOU RULE!!!!! :) that worked just wonderfully :-)

>From: "Ben Doom" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: RE: Help Please: Find/Replace
>Date: Thu, 23 Jan 2003 14:54:43 -0500
>
>This sounds like a job for (da da da-daaaah) RegEx!
>
>You want something along the lines of
>string = rereplace(string, '\[([^]]+)\]', '<a href="\1">\1</a>', 'all');
>
>I /think/ this will work.  I've not tested it and whatnot.  Working with
>brackets and other special characters always adds a bit of adventure to it.
>:-)
>
>HTH.
>
>And, of course, if you need more help or more in-depth commentary, jump on
>over to CF-RegEx (available via the [http://www.houseoffusion.com] 
>website).
>
>Good luck.
>
>
>--  Ben Doom
>     Programmer & General Lackey
>     Moonbow Software, Inc
>
>: -----Original Message-----
>: From: Kelly Matthews [mailto:[EMAIL PROTECTED]]
>: Sent: Thursday, January 23, 2003 2:43 PM
>: To: CF-Talk
>: Subject: Help Please: Find/Replace
>:
>:
>: OK I am sure there is an ez way to do this my brain just doesn't
>: seem to be
>: working today...
>:
>: We have an application where some people may enter URLs they are
>: requested
>: to enter them like so
>:
>: [http://www.whatever.com]
>: [http://www.whatever2.com]
>: [http://www.whatever3.com]
>:
>: What i want to be able to do is find each [ ] and take what's in
>: the middle
>: of it and wrap it in a <a
>: href="http://www.whatever.com";>http://www.whatever.com</a> and
>: remove the  [
>: ] there may be multiple URLS in the text.  I have been messin around with
>: the find/replace etc. for a bit now and running into some problems. I am
>: sure i am just doing it wrong. Any suggestions on how to do this right?
>:
>: Kelly
>:
>:
>:
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to