Well I dunno how to do such a regex, but here's an alternate idea:

Make a copy of your codebase to another folder.

Do a find/replace on THAT folder, deleting all your commented code (i.e. 
starting with "<!---" and ending with "--->"). I imagine you could tweak 
your existing regex you're using to find all <cfquery>...</cfquery> bits 
to do this.

That way, your codebase copy will be completely devoid of commented 
code. THEN you can run your cfquery-findin' regex on your codebase copy, 
and it'll only turn up active <cfquery> code. Granted, your line numbers 
won't necessarily match up with your original codebase, what with all 
the comments removed, but it's a step toward what you're after at least.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290110
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to