diff options
authorLars Knoll <>2020-04-08 13:00:47 +0200
committerLars Knoll <>2020-04-15 14:39:29 +0200
commit76e54a2e151a7d31e18feb84cc79451724ab7c6f (patch)
parent1b65098a202f67d80d5db9e2ea1d07033c01f570 (diff)
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 <>
1 files changed, 5 insertions, 0 deletions
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.
\section2 Porting from QRegExp::exactMatch()