Here try this. ItÂ’s from one of my long used validation methods. It removes all punctuation and control type characters.
REReplaceNoCase(arguments.string,'([[:cntrl:]]|[[:punct:]])','','All') Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On May 13, 2014, at 11:36 AM, Matthew Smith <chedders...@gmail.com> wrote: > > I want to remove anything not number and letters to be sure that it does > not cause an issue with the search engines properly indexing the meta tags. > Thank you for the help! > > > On Tue, May 13, 2014 at 11:51 AM, Wil Genovese <jugg...@trunkful.com> wrote: > >> >> Matthew - what is your end goal? >> >> >> Wil Genovese >> Sr. Web Application Developer/ >> Systems Administrator >> CF Webtools >> www.cfwebtools.com >> >> wilg...@trunkful.com >> www.trunkful.com >> >> On May 13, 2014, at 10:47 AM, DURETTE, STEVEN J <sd1...@att.com> wrote: >> >>> >>> Actually with the ^ I thought he told it to remove anything not in >> 0-9A-Za-z >>> >>> Steve >>> >>> >>> -----Original Message----- >>> From: Russ Michaels [mailto:r...@michaels.me.uk] >>> Sent: Tuesday, May 13, 2014 11:34 AM >>> To: cf-talk >>> Subject: Re: stripping characters for meta description >>> >>> >>> you haven't told it to remove quotes, you have only told it to remove >>> 0-9A-Za-z >>> >>> If you want quotes removed also then you need to include that in your >> regex >>> >>> >>> On Tue, May 13, 2014 at 4:26 PM, Matthew Smith <chedders...@gmail.com >>> wrote: >>> >>>> >>>> I have this: >>>> <cfset request.page.description = >>>> REReplace(request.page.description,"[^0-9A-Za-z ]","","all")> >>>> >>>> yes I am still getting quotes in the description. >>>> >>>> >>>> >>>> >> http://www.theartoflovingcatsanddogs.com/art-item/pueblo-kitties-coffee-cup-286/index.cfm >>>> >>>> >>>> >>> >>> >>> >>> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358643 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm