[Solved] Get substring from QString?
General and Desktop
2
Posts
2
Posters
3.5k
Views
1
Watching
-
I have a QString which contains a mix of text and numbers.
However the position of numbers and their count is not known at compile time.
So I wanted to know if QString is capable of sepparating all the numbers and give them in some list, similar to what it can do for QString::split()? -
Sounds you need to check "QRegExp":http://qt-project.org/doc/qt-5/qregexp.html or "QRegularExpression":http://qt-project.org/doc/qt-5/qregularexpression.html