Posted previously to the regex forum but I got no response.  Before I give this 
up as impractical as I fear it is, I am posting here.

This is a Dreamweaver find & replace regex question.

I am using the following code to find all the <cfquery.../cfquery> 
blocks to analyze a legacy application.  It is working well to find all 
the query blocks in the application..
<cfquery(.|[\r\n])*?/cfquery>

However, I have noticed that some of the <cfquery> blocks are not active 
since they have been commented out.  Is there a straight forward way to 
optionally find these queries that are inside a comment set "<!--- ... 
--->" and include the entire comment block with the query block as well 
as all other query blocks? 

As an added wrinkle, there may be more then one query block commented out by a 
single set of comment tags.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290107
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