> Can anybody guess what makes this code?

> <CFSET initial_content = REReplace(attributes.html,
> "[^#chr(32)#-#chr(255)#]", " " , "All")>

Ooops! Sorry -- my first response was backward -- I missed the ^ in
the character class ... This would replace any non-printing characters
in the attirbutes.html string with a space, so instead of having
line-breaks, carriage returns and potentially ascii beep codes, record
separators, etc. the string would contain only printable characters
and spaces. Could be useful for formatting "dirty data" which
sometimes erroneously contains non-printing characters and/or to
remove new-line characters from the string.


s. isaac dealey     954.927.5117
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://macromedia.breezecentral.com/p49777853/
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195700
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to