I'd say:

reReplace( string, '[A-Z##*/-]+', '', 'all' )

not sure if you need to escape the *, though.

Mingo.


Rick Root wrote:
> I need to remove all characters from a string that are *NOT* the following:
> 
> A-Z
> #
> *
> /
> -
> 
> currently, my regex looks like this:
> 
>       REReplace(lastName,"[^[:alpha:]]","","ALL")))
> 
> Clearly, I've got to add the other characters in, but I'm not sure quite 
> where to put them.
> 
> Rick
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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

Reply via email to