<.*?> should work (in MX+)

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-----Original Message-----
From: Johnny Le [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 28, 2006 2:17 PM
To: CF-Talk
Subject: Why doesn't this regular expression work?

I am trying to remove all HTML tags from the description.  Why doesn't this
work?  It only replaces the last occurrence, just like when I specify "one"
instead of "all", but it replaces the last occurrence instead of the first
occurrence.

<cfset attributes.description =
REreplace(attributes.description,'(.*)<.*>(.*)','\1\2','all')/>

Johnny



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233681
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to