Why not just put everything you DO want in the string and invert it.

^[A-Z#*/-]

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Monday, August 07, 2006 9:41 AM
To: CF-Talk
Subject: Regex Help...


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:248997
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