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.