Did you TRIM the variable first? That may help ... Perhaps there's whitespace surrounding the text.
Try: ReReplaceNoCase(trim(variable),"[^A-Za-z0-9]","_","ALL") Joshua Miller Head Programmer / IT Manager Garrison Enterprises Inc. www.garrisonenterprises.net [EMAIL PROTECTED] (704) 569-9044 ext. 254 ************************************************************************ ************* Any views expressed in this message are those of the individual sender, except where the sender states them to be the views of Garrison Enterprises Inc. This e-mail is intended only for the individual or entity to which it is addressed and contains information that is private and confidential. If you are not the intended recipient you are hereby notified that any dissemination, distribution or copying is strictly prohibited. If you have received this e-mail in error please delete it immediately and advise us by return e-mail to [EMAIL PROTECTED] ************************************************************************ ************* -----Original Message----- From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 1:03 PM To: CF-Talk Subject: RE: Regular Expression Help When I use your before mention snippet, I am getting an underscore character tacked onto the beginning and ending of each word. There is no space or any other character their, but after executing the regex statement, I have underscores before and after. [[:punct:]]|[[:space:]] on 'some phrase' returns '_some_phrase_' instead of 'some_phrase' which is what I was looking for. Thanks -----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 11:54 AM To: CF-Talk Subject: RE: Regular Expression Help What is a non-existent space? How could a regex remove a character not there? ======================================================================= Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc Email : [EMAIL PROTECTED] WWW : www.camdenfamily.com/morpheus Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 06, 2002 11:53 AM > To: CF-Talk > Subject: RE: Regular Expression Help > > > How do you not replace a non-existent space before and after the > string? Everything else works great. > > Thanks > > -----Original Message----- > From: Joshua Miller [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 06, 2002 11:43 AM > To: CF-Talk > Subject: RE: Regular Expression Help > > > Oh, forgot the space .... use "[[:punct:]]||[[:space:]]" as the RegEX > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com