@fari35
Your code seems to have nothing to do with Qt. Goodness knows how it works. It sounds like all you want do is use QRegularExpression and QString::replace(const QRegularExpression &re, const QString &after).
@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.