soz - typo - I meant the following 2: REReplace(STR,"[^0-9a-zA-Z]","","ALL") or REReplaceNoCase(STR,"[^0-9a-z]","","ALL")
diff between REReplace and REReplaceNoCase > -----Original Message----- > From: Rich Wild [mailto:[EMAIL PROTECTED]] > Sent: 02 November 2001 15:00 > To: CF-Talk > Subject: RE: Parsing/Stripping out not letters or numbers > > > Raymond, > > one of those silly little questions, but is there any > preference in using: > > ReplaceNoCase(STR,"[^0-9a-zA-Z]","","ALL") > or > REReplaceNoCase(STR,"[^0-9a-z]","","ALL") > > to replace case-insensitively? > > > -----Original Message----- > > From: Raymond Camden [mailto:[EMAIL PROTECTED]] > > Sent: 02 November 2001 14:59 > > To: CF-Talk > > Subject: RE: Parsing/Stripping out not letters or numbers > > > > > > You mean replacing anything that isn't a num or a letter? > > > > <CFSET STR = "Some original string"> > > <CFSET CLEAN_STR = REReplaceNoCase(STR,"[^0-9a-z]","","ALL")> > > > > Normally you would want to keep spaces as well. If so, add a > > space after > > 'z'. > > > > ============================================================== > > ========= > > Raymond Camden, Principal Spectra Compliance Engineer for Macromedia > > > > Email : [EMAIL PROTECTED] > > Yahoo IM : morpheus > > > > "My ally is the Force, and a powerful ally it is." - Yoda > > > > > -----Original Message----- > > > From: BT [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, November 02, 2001 9:42 AM > > > To: CF-Talk > > > Subject: Parsing/Stripping out not letters or numbers > > > > > > > > > Anyone know how I may do this? We're running CF5..... > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists