I'm trying to replace \\u0061
and \u0061
to %u0061
with QRegExp,
So I did this,
QString a = "\\u0061";
qDebug() << a.replace(QRegExp("\\?\\u"), "%u");
Since the slash can appear either once or twice, so I used a ?
to represen the first slash, but it ain't working, what's wrong about it?
EDIT
Thanks to Denomales, it should be \\\\u
that represents \\u
, and I'm using \\\\+u
right now.