&,;:]+"
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
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
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!\.\?''"\(\)&
,;:])', '\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?
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
5 matches
Mail list logo