From 76e54a2e151a7d31e18feb84cc79451724ab7c6f Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 8 Apr 2020 13:00:47 +0200 Subject: Extend the QRegExp->QRegularExpression porting doc Mention that . matches newlines in QRegExp, but not by default in QRegularExpression. Change-Id: I9663fe30c7b7e068d673aa8d51884f6828e0ee59 Reviewed-by: Alex Blasche --- src/corelib/text/qregexp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/corelib/text/qregexp.cpp b/src/corelib/text/qregexp.cpp index 345fc70dd8..bf76a1992c 100644 --- a/src/corelib/text/qregexp.cpp +++ b/src/corelib/text/qregexp.cpp @@ -737,6 +737,11 @@ QT_BEGIN_NAMESPACE \li QRegExp by default does Unicode-aware matching, while QRegularExpression requires a separate option; see below for more details. + \li c{.} in QRegExp does by default match all characters, including the + newline character. QRegularExpression excludes the newline character by + default. To include the newline character, set the + QRegularExpression::DotMatchesEverythingOption pattern option. + \endlist \section2 Porting from QRegExp::exactMatch() -- cgit v1.2.3