rereplace(str, "&.*?;", "", "all")

Basically it says... replace anything that starts with & and everything it
finds until the first occurrence of ;

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


-----Original Message-----
From: Smith, Daron [PA] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 28, 2007 3:52 PM
To: CF-Talk
Subject: Reg ex question

I want to do a reg ex replace to remove all special text characters from an
XML feed, I"ve been doing <cfset Desc = Replace(Desc, '&##160;', "", "ALL"
)> but I keep finding more characters to replace so my list is getting
longer, can I do some sort of regex find and replace any string that starts
with an & and ends with a ; ?

Any help would be appreciated.

Daron Smith

"PSEA E-mail Firewall" annotation on Tue Aug 28 2007 15:52:05
---------------------------------------------------------------------
NOTICE: Only the individual sender is responsible for the content of the
message, and the message does not necessarily reflect the position or policy
of the Pennsylvania State Education Association.
---------------------------------------------------------------------




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287340
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