> Just curious... I'm a bit confused on how to do this and 
> figured someone else may have an idea (if not the code). 
> Sorry if this sounds disjointed. I still have yet to get my 
> coffee this morning.
> 
> I have the following string...
> 
> This is a <a href="http://www.foobar.com";>Link</a> to foobar.
> 
> I would like to pull out the HTML from this statement so that I have
> 
> This is a Link to foobar.
> 
> This will also allow me to make a forum widget that allows
> 
> [url]http://www.foobar.com[/url]
> 
> to change into
> 
> <a href="http://www.foobar.com";>Link</a>
> 
> Any ideas how I can capture the text between the <>'s and/or 
> the text between the tags?

You want a regular expression that will strip HTML tags. Personally, I'm no
whiz with regular expressions; they give me a headache. However, if you
Google "regex strip html" you'll find several viable options.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306172
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to