title: QRegularExpression to find numeric part of file name
body: <p>I have the entire path of a file available in a Qstring</p>
  
  <pre><code>Qstring str = "d://output/File_012_xyz/logs";
  </code></pre>
  
  <p>From this I wanted to extract the number 12.</p>
  
  <p>I tried something like this</p>
  
  <pre><code>QRegularExpression rx("[1-9]+");
  
  QRegularExpressionMatchIterator i = rx.globalMatch(str );
  if (i.hasNext())
  {
      QRegularExpressionMatch match = i.next();
      QString word = match.captured(1);
      quint32 myNum = word.toUInt();
  }
  
  </code></pre>
  
  <p>This always returns myNum as 0. What am I doing wrong here?</p>