RE: Highlighting non-standard ASCII characters?

2010-10-05 Thread Bobby Hartsfield
&,;:]+" That is, assuming the OP wants to highlight the accented chars as well. Thanks for the escape reminder and the the \0 tip. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Peter Boughton [mailto:bought...@gmail.com] Sent: Tuesday

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 Marie Taylore
Bobby, Thank you! This works great! MarieT > Something like this? > > rereplace(str, '([^A-Za-z0-9_\r\s\n!\.\?''"\(\)&,;:])', ' class="highlight">\1', 'all') > > > If you don’t mind characters like ñ, then just use \w instead of A-Za-z0-9_ > > > rereplace(str, '([^\w\r\s\n!\.\?''"\(\)&

RE: Highlighting non-standard ASCII characters?

2010-09-30 Thread Bobby Hartsfield
,;:])', '\1', 'all') .:.:.:.:.:.:.:.:.:.:.:.:.:. 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?

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 Ora