Re: Highlighting non-standard ASCII characters?

2010-10-05 Thread Marie Taylore
Bobby, Thank you! This works great! MarieT Something like this? rereplace(str, '([^A-Za-z0-9_\r\s\n!\.\?''\(\),;:])', 'span class=highlight\1/span', 'all') If you don’t mind characters like ñ, then just use \w instead of A-Za-z0-9_ rereplace(str,

Re: Highlighting non-standard ASCII characters?

2010-10-05 Thread Peter Boughton
Hmmm, although it works that code is not quite correct - there's a few issues with it. If you don?t mind characters like ñ, then just use \w instead of A-Za-z0-9_ This is *incorrect* - in ColdFusion regex, \w does NOT include accented characters. There are other regex engines where it does,

RE: Highlighting non-standard ASCII characters?

2010-10-05 Thread Bobby Hartsfield
Subject: Re: Highlighting non-standard ASCII characters? Hmmm, although it works that code is not quite correct - there's a few issues with it. If you don?t mind characters like ñ, then just use \w instead of A-Za-z0-9_ This is *incorrect* - in ColdFusion regex, \w does NOT include accented

RE: Highlighting non-standard ASCII characters?

2010-09-30 Thread Bobby Hartsfield
') .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Marie Taylore [mailto:mt4yl...@yahoo.com] Sent: Wednesday, September 29, 2010 8:06 PM To: cf-talk Subject: Highlighting non-standard ASCII characters? Hi all, I'm looking for a way to *highlight* any

Highlighting non-standard ASCII characters?

2010-09-29 Thread Marie Taylore
Hi all, I'm looking for a way to *highlight* any characters that fall out of the range of A-z/0-9/standard punctuation characters. Most of the cflib utilities are made to remove those characters. Anyone know of (or have) a function that will make them stand out? I need to find them in an