Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Is there principal difference between QRegularExpression and QRegExp?
bogong last edited by bogong
You should use QRegularExpression
Note: In Qt 5, the new QRegularExpression class provides a Perl compatible implementation of regular expressions and is recommended in place of QRegExp.
So i guess the biggest difference is its compatibility
QRegExp is a custom regular expression implementation.
QRegularExpression uses PCRE as a backend.
Also, QRegExp should be considered deprecated and not used in new code.