regex replace
-
Usually regex libraries have a replace or sub function;
however, I could only find:
QRegularExpression::swap
QRegularExpressionMatch::swapIs swap used for this purpose? I couldn't find any examples, or figure it out.
A basic example would be appreciated. -
@ravas I found QString replace.
replace(const QRegularExpression & re, const QString & after)
http://doc.qt.io/qt-5/qstring.html#replace-13