<table><tr><td style="">ahmadsamir created this revision.<br />ahmadsamir added reviewers: Frameworks, mpyne, dfaure, apol.<br />Herald added a project: Frameworks.<br />ahmadsamir requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D26210">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Port QRegExp::exactMatch() by using QRegularExpression::anchoredPattern()<br />
to match the entire subject string.</p>

<p>KStringHandler::tagUrls(), make the regex slightly easier to read and capture<br />
the whole matched url to use when calling QString::replace().</p>

<p>Note that KStringHandler::perlSplit(QRegExp... will have to be kept and<br />
marked for deprecation, since it's called by some other apps in KDE.<br />
A new perlSplit() overload should be added, possibly, just one perlSplit()<br />
function that takes a QString, and a param indicating whether to treat it<br />
as plain text or a regular expression.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>make && ctest</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R244 KCoreAddons</div></div></div><br /><div><strong>BRANCH</strong><div><div>l-qregularexpression (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26210">https://phabricator.kde.org/D26210</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/krandomtest.cpp<br />
src/lib/io/kfileutils.cpp<br />
src/lib/text/kmacroexpander_unix.cpp<br />
src/lib/text/kstringhandler.cpp<br />
src/lib/util/klistopenfilesjob_unix.cpp<br />
src/lib/util/kshell_win.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Frameworks, mpyne, dfaure, apol<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>