Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Excluding CF and Js Commenting tags

$
0
0

I am counting the number of lines on code in .cfm pages. But i want to exclude the lines between the CF and Javascript commenting tags while doing this.

 

I tried replacing the lines in between the commenting tags with empty string like the below one.

 

For CF commenting tags :  <cfset filecontent=rereplacenocase(filecontent,"<![^<]*>","","all")>

For Js Commenting tags  :  <cfset filecontent=rereplacenocase(filecontent,"/*[^<]*/","","all")>

 

But mostly the above method does not exclude the codes. can anyone suggest any alternate method to achieve this.


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>