I would write first some mini syntax analyser to find all text in between <CFOUTPUT... and </CFOUTPUT>, keeping in mind that they may be stacked in several levels. Then for each string found, use regexp to find single # followed by any character illegal in a variable name before a next # or end of string. Ie: #[a-zA-z0-9_]+([^a-zA-z0-9_#]|$)
This does not take in account eventual # inside delimited strings. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345626 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

