Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
parse strings with tags
fari35 last edited by fari35
This post is deleted!
JonB last edited by
Your code seems to have nothing to do with Qt. Goodness knows how it works. It sounds like all you want do is use
QString::replace(const QRegularExpression &re, const QString &after).
Are you working with XML data ?
fari35 last edited by
@SGaist Actually I have made a client that will send the messages with tags like the one I have shown, so I have to change the values of tags. I have been told to use std::string.find() and std::string.substr(). but I am not getting the required output.
Why did you delete the question ?
As for the edition, since you control the tags, then QRegularExpression and QString should fit well.