Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6
-
None
-
-
313bb3236 (dev)
Description
As can be seen in https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/text/qregularexpression.cpp?id=393e496385e4de8522b8ffff0e539f9150238c07#n1937, a dot is used if the NonPathWildcardConversion option is enabled and not used otherwise. Therefore, only in case of non-path wildcard conversion, matching newlines requires creating a QRegularExpression with the DotMatchesEverythingOption pattern option. This is an unfortunate inconsistency. Can be fixed by e.g. replacing
u".*", u"."
with
u"[\\d\\D]*", u"[\\d\\D]"