summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-04-08 13:00:47 +0200
committerLars Knoll <lars.knoll@qt.io>2020-04-15 14:39:29 +0200
commit76e54a2e151a7d31e18feb84cc79451724ab7c6f (patch)
tree7e9977400d45b0a7ca7e2a3e164f3f555fa3cdb2
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 <alexander.blasche@qt.io>
-rw-r--r--src/corelib/text/qregexp.cpp5
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.
+
\endlist
\section2 Porting from QRegExp::exactMatch()