Try "[^[:digit:]]+".  The carat (^) at the beginning of a character class
([]) negates the entire class.

  <CFSET original="abc 123 de45f 6-g_">
  <CFSET new=REReplace(original,"[^[:digit:]]+","","ALL")>
  <CFOUTPUT>#original# -- #new#</CFOUTPUT>
  <!---
  abc 123 de45f 6-g_ -- 123456
  --->

-Regex Rick

-----Original Message-----
From: Russel Madere [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 11, 2000 2:27 PM
To: CF Talk Mailing List
Subject: REGEX for everything but numbers


I'm trying to remove in a string that is NOT a number.  I want to use
regular expression and the REReplaceNoCase() function to do this.  Is there
a way to say everything except numbers?  I know [[:digit:]] will give me the
digits, but I can't find a way to negate it.

Any help is appreciated


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to