Loading ...
Sorry, an error occurred while loading the content.

24174Re: [Clip] Counting html tags

Expand Messages
  • Dave
    Nov 17, 2013
    • 0 Attachment
      Hi
      Would these help if you put <p> and </p> in the search pattern and nothing in the replace string ??
      then use
       
          THANKYOU DAVE M
      ----- Original Message -----
      Sent: Sunday, November 17, 2013 7:52 AM
      Subject: [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.

       

      Any thoughts?

      Thanks,
      John

       

    • Show all 5 messages in this topic