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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.