This should do it: ReReplaceNoCase(getContent.title, '[^a-z0-9\- ]', '', 'all')
By the way, that is keeping individual spaces as well, but you probably knew that. > -----Original Message----- > From: Paul Giesenhagen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 30, 2006 1:26 PM > To: CF-Talk > Subject: Regular Expression > > I have the following regular expression: > > ReReplaceNoCase(getContent.title, '[^a-z0-9 ]', '', 'all') > > I want it to ALSO keep all the hyphens too... but remove > everything else except numbers, alpha and hyphens. > > What would I change? > > Thanks > Paul Giesenhagen > QuillDesign > 417-885-1375 > http://www.quilldesign.com > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241755 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54