title: QT QRegularExpression not matching
body: <p>My code is:</p>
  
  <pre><code>QRegularExpression reg("^(.*) .*"); 
  QString match = reg.match("help a").captured(1);
  </code></pre>
  
  <p>This should work and also checks out when I run it in an online regex testing website. Am I missing something?
  Edit: I tried removing '^' from the pattern and it works.</p>