Qt Code:
  1. QString contents = "lll-###";
  2.  
  3. QRegExp split("\\b");
  4.  
  5. QStringList splitContents = contents.split(split, QString::SkipEmptyParts);
  6. for(QString const &data : splitContents)
  7. {
  8. qDebug() << data;
  9. }
To copy to clipboard, switch view to plain text mode 

What I want is "lll-", "###"
The result is "lll", "-###"

What should I do?Thanks