title: Find all strings within a string
body: <p>I get StrTxt as html string by http request response text. I want to find all occurrences of '"string"' in the StrTxt.</p>
  
  <p>Something like this.</p>
  
  <pre><code>for each string in StrTxt
  StrTxt = "all matched strings from StrTxt"
  do something StrTxt.
  </code></pre>
  
  <p><strong>Edit</strong>
  This is tagged as possible duplicate but it's not.
  <a href="https://stackoverflow.com/questions/22711120/how-to-loop-through-each-word-in-a-word-document-vba-macro">How to loop through each word in a word document - VBA Macro</a> explains how to find string in document and not string.</p>
  
  <p>It is just simple. How to find all strings withing strings? Isn't my title explains everything?</p>
  
  <p><strong>Edit 2</strong></p>
  
  <p>From answer of Ansgar Wiechers I tried following.</p>
  
  <pre><code>Do
  i = InStr(strtxt, "startstring")
        If i &gt; 0 Then
          strtxt = Mid(strtxt, i, Len(strtxt) - i)
          i = InStr(InStr(strtxt, "midstring") + 1, strtxt, "endstring")
          If i &gt; 0 Then
           strtxt = Left(strtxt, i + Len(endstring)) ' I am using i+4 as I know the length
          WScript.Echo strtxt
          End If
        End If
  Loop While i &gt; 0
  </code></pre>
  
  <p>It gives only one occurences. How to loop correctly?</p>