Hi,
what would you use to parse a string like this:
name:Bob&surname:Smith&cityublin
In order to have
Bob
Smith
Dublin
in three separated string?
thanks in advance
Hi,
what would you use to parse a string like this:
name:Bob&surname:Smith&cityublin
In order to have
Bob
Smith
Dublin
in three separated string?
thanks in advance
See QString::split().
First you split after "&" and you get "name:xxx" strings, next you split these strings after ":".
regards
ok, thanks
I though that was a way like using .arg in the opposite way....
like old scanf....
You can use QRegExp and parenthesis to capture the parts you want but using QString::split is definitely easier in this case.
Bookmarks