Parsing strings with QT
sibislaw2 last edited by
Is there any simple and elegant way to parse strings like this:
in QT? The line consists from command, then comma and after then field names with equations separated by commas.
Depends on what you want to get from your parsing. e.g.
@QStringList elementList = myString.split(',');@
and you have a list containing each element.
You can also use regular expressions with QRegularExpression or QRegExp if you're on Qt 4
Hope it helps