title: Find strings between two tags with regex in Qt
body: <p>can anybody help me with this?</p>
  <p>I have a string which contains N substrings, delimited by tags and I have to get ALL of the substrings. The string is like</p>
  <blockquote>
  <p>STARTfoo barENDSTARThi there!ENDSTARTstackoverflowrulezEND</p>
  </blockquote>
  <p>I would like to get all the strings between START/END tags, I tried with a couple of regular expressions with no luck:</p>
  <blockquote>
  <p>(START)(.*)(END)   gives me ALL the contend between the first and last tag</p>
  <p>(START)(\w+)(END)   gives me no result</p>
  </blockquote>
  <p>The code is much simple:</p>
  <pre><code>QString l_str &quot;STARTfoo barENDSTARThi there!ENDSTARTstackoverflowrulezEND&quot;; 
  QRegExp rx(&quot;(START)(\w+)(END)&quot;);
  QStringList list;
  int pos = 0;
  while ((pos = rx.indexIn(l_str, pos)) != -1)
  {
      list &lt;&lt; rx.cap(1);
      pos += rx.matchedLength();
  }
  qWarning() &lt;&lt; list;
  </code></pre>
  <p>I'd like a resulting list like:</p>
  <blockquote>
  <p>STARTfoo barEND</p>
  <p>STARThi there!END</p>
  <p>STARTstackoverflowrulezEND</p>
  </blockquote>
  <p>Any help?</p>
  <p>Thanks!</p>