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
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 =
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 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
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
, 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
-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
, 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
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.
9 matches
Mail list logo