title: How to match spaces at the strings' beginning using QRegularExpression in qt?
body: <p>I would like to extract digits from a QString containing space and common, and my code just like this:</p>
  
  <pre><code>QString line = "  3 , 50, 200, \t\t100, 70, +3, 5";
  
  QStringList strList = line.split(QRegularExpression("[,\\s]+"));
  
  qDebug() &lt;&lt; strList;
  
  // what I expect
  // ("3", "50", "200", "100", "70", "+3", "5")
  
  // while the result is
  // ("", "3", "50", "200", "100", "70", "+3", "5")
  </code></pre>
  
  <p>As you can see, there is an unexpected <code>""</code> ahead when spaces are at the strings' beginning.</p>
  
  <p>So my question is simple: how to edit the regular expression to remove the front spaces or common?</p>
  
  <p>Thank you for your answers in advance!</p>