D26123: Port QRegExp to QRegularExpression
Ahmad Samir
noreply at phabricator.kde.org
Fri Jan 3 16:44:44 GMT 2020
ahmadsamir added a comment.
FTR; in one of my inline comments I said:
> And I found that:
>
> - {,3} in QRegExp is equivalent to {0,3}
> - {,3} in QRegularExpression is equivalent to {1,3}
The second part is actually wrong (as I was told by dfaure who was told by upstream QRegularExpression author); in QRegularExpression {,3} would be treated as a literal string, you must specify the first number before "," in {} expressions; so e.g.:
{0,3}
{1,3}
{2,3}
It's explained much better by upstream, see https://codereview.qt-project.org/c/qt/qtbase/+/285293
REPOSITORY
R270 KCodecs
REVISION DETAIL
https://phabricator.kde.org/D26123
To: ahmadsamir, #frameworks, dfaure, mlaurent, vkrause
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200103/b78e537b/attachment.html>
More information about the Kde-frameworks-devel
mailing list