24174Re: [Clip] Counting html tags
- Nov 17, 2013HiWould these help if you put <p> and </p> in the search pattern and nothing in the replace string ??then useTHANKYOU DAVE M----- Original Message -----From: John ShotskySent: Sunday, November 17, 2013 7:52 AMSubject: [Clip] Counting html tags
I have a routine to count opening and closing html tags, such as <p> and </p>. It uses a loop and counter for each and then the counts are compared. On a large document, it takes minutes just for the counting, which is not acceptable. I'd like to find a method that does not use a loop to get the counts. I'm thinking along the lines of using 'getdoclist' to get each occurrence, then using the line count as the count. Not sure that will work, but the question I have is whether there is a fast way to count occurrences of tags like this without using loops. The documents can be over 100,000 lines long.
- << Previous post in topic Next post in topic >>