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,
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,
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
')
.:.:.:.:.:.:.:.:.:.:.:.:.:.
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
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
5 matches
Mail list logo