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>
This commit is contained in:
Lars Knoll 2020-04-08 13:00:47 +02:00
parent 1b65098a20
commit 76e54a2e15

View File

@ -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()