title: Qt / QRegularExpression - Can't capture all results, only 1st instance, why?
body: <p>I am trying to get some text surrounded by <code>&lt;td&gt;</code> tags. My problem is that I am able to fetch the first result only, and can't get others.</p>
  
  <p>From the following HTML, I only get the 1st result which is this text:</p>
  
  <blockquote>
    <p>Student Name</p>
  </blockquote>
  
  <p>But all other attempts to capture the rest of the needed text are empty, null. Why is that &amp; what am I doing wrong?</p>
  
  <p><strong>Text for regular expression to work on:</strong></p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;table width="52%" border="1" align="center" cellpadding="1" cellspacing="1"&gt;
    &lt;tr&gt;
      &lt;td colspan="2" align="center" bgcolor="#999999"&gt;Result&lt;/td&gt;
      &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td width="22%"&gt;&lt;strong&gt;Student ID&lt;/strong&gt;&lt;/td&gt;
      &lt;td width="78%"&gt;13/0003337/99&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Student Name&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;Alaa Salah Yousuf Omer&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;College&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;Medicine &amp; General Surgery&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Subspecialty&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;General&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Semester&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;Fourth&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;State&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;Pass&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Semester's GPA&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;2.89&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Overall GPA&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;3.13&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>My code:</strong></p>
  
  <pre><code>QString resultHTML = "A variable containing the html code written above."
  
  QRegularExpression regex("&lt;td&gt;(.*)&lt;/td&gt;", QRegularExpression::MultilineOption);
  QRegularExpressionMatch match = regex.match(resultHTML);
  
  // I only get the 1st result logged withing debugger
  for(int x = 0; x &lt;= match.capturedLength(); x++)
  {
      qDebug() &lt;&lt; match.captured(x);
  }
  
  // This here doesn't get me anything, null!
  _studentName = match.captured(2);
  _semesterWritten = match.captured(8);
  _stateWritten = match.captured(10);
  _currentGPA = match.captured(12);
  _overallGPA = match.captured(14);
  </code></pre>