Sure.

Before I get into that, I might suggest the DeMoronizer, if your problem 
is mostly with Word characters sneaking in.

The regular expression for something that starts with a pound sign and 
ends with a semicolon with only letters or numbers could look like one 
of the following:

##\w;
##[a-zA-Z0-9];
##[[:alnum:]]##;

Personally, I prefer the second one -- it seems the most readable to me 
-- but feel free to choose what seems best.

YMMV, untested, etc.

--Ben Doom

Smith, Daron [PA] wrote:
> 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.
> ---------------------------------------------------------------------
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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