I would start by finding/escaping identifiable single hashes - i.e. the font 
colours and HTML entities.

Using a regex search that supports lookbehind (so not CF itself, but ok with 
CFEclipse/CFBuilder) you can do:

    (?<!#)#(?=[A-F0-9]{3,6}\s*+["';])

Which assumes colours must end with " or ' or ; which I think covers both HTML 
attributes and CSS use.

For HTML entities:

    (?<=&)#(?=\d+;|x[A-F0-9]+;)


Oh and # parts in links... something like:

    (?<=\.(ht|cf)ml?)#(?=[^#'"]++['"])



Those three are all written to just match the # itself, so you can replace with 
## and it should work. (Obviously make sure you have a backup of the code 
before changing anything though.)

Once all the known single hashes are escaped, I'd just attempt to compile all 
the templates using cfcompile, and see what errors crop up from that. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:345618
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to