QRegularExpression was introduced in Qt 5.0 as a successor to
QRegExp, and while it is still supported under Qt 6 (via
Core5Compat), the corresponding QRegExpValidator is not. Hence,
migrating will be required before being able to port to Qt 6 (#297).
While QRegularExpression is not always a drop-in replacement for
QRegExp (see the documentation¹ for details), in our case, it is. Our
use doesn't run into any of the situations listed in the documentation,
while our only instance of exactMatch() uses a pattern that is already
anchored.
QRegularExpression
was introduced in Qt 5.0 as a successor toQRegExp
, and while it is still supported under Qt 6 (viaCore5Compat
), the correspondingQRegExpValidator
is not. Hence, migrating will be required before being able to port to Qt 6 (#297).While
QRegularExpression
is not always a drop-in replacement forQRegExp
(see the documentation¹ for details), in our case, it is. Our use doesn't run into any of the situations listed in the documentation, while our only instance ofexactMatch()
uses a pattern that is already anchored.¹ https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users