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, '([^\w\r\s\n!\.\?''"\(\)&,;:])', '<span
class="highlight">\1</span>', 'all')
 

.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-----Original Message-----
From: Marie Taylore [mailto:[email protected]] 
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 Oracle database field and highlight any characters that
may not "belong", so-to-speak.

Any help is appreciated.

Thanks!

MarieT


      



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337725
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to