stripping characters for meta description

2014-05-13 Thread Matthew Smith
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

Re: stripping characters for meta description

2014-05-13 Thread Russ Michaels
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.comwrote: I have this: cfset request.page.description =

RE: stripping characters for meta description

2014-05-13 Thread DURETTE, STEVEN J
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

Re: stripping characters for meta description

2014-05-13 Thread Wil Genovese
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

Re: stripping characters for meta description

2014-05-13 Thread Dean Lawrence
You are also getting exclamation points, colons, and periods. The code that you have posted should replace anything that is not a letter, number or space (though I would use \s for a space, as it is more readable). Are you sure that you are not outputting the original text, not the modified

Re: stripping characters for meta description

2014-05-13 Thread Russ Michaels
, 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

Re: stripping characters for meta description

2014-05-13 Thread Matthew Smith
-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

Re: stripping characters for meta description

2014-05-13 Thread Wil Genovese
, 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

RE: stripping characters for meta description

2014-05-13 Thread Robert Harrison
For meta tags I just use a simple replace list to strip the quotes. I use the list so I can replace the standard quotes and those left and right smart quotes from word. I'm assuming you're doing this because your meta description is getting truncated when it hits the first in-line quote.