<table><tr><td style="">ahmadsamir updated this revision to Diff 76852.<br />ahmadsamir edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-yryvkyuxufcieao/">(Show Details)</a><br />ahmadsamir added a comment.
</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/D23457">View Revision</a></tr></table><br /><div><div><p>Modify the extended context menu:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">QRegularExpression supports fixed-length positive/negative lookbehind</li>
<li class="remarkup-list-item">With QRegularExpression/PCRE, \x escape sequences must/should be wrapped in curly braces</li>
</ul></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div> was updated to use QRegularExpression, but not tested<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
<br />
- Adjust the extended context menu used in the find box:<br />
- QRegularExpression supports positive/negative fixed-length lookbehind<br />
- \x.... escape sequences must be wrapped in curly braces if more than<br />
two hex digits is used, so it's better to just always wrap \x escape<br />
sequencess in curly braces (QRegularExpression upstream author<br />
recommendation), c.f.:<br />
- https://phabricator.kde.org/D26123#inline-147157<br />
- https://perldoc.perl.org/perlre.html</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">- Update</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">- Tweak</span> the relevant unit tests (searchbar_test, regexpsearch_test)</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D23457?vs=74387&id=76852">https://phabricator.kde.org/D23457?vs=74387&id=76852</a></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/D23457">https://phabricator.kde.org/D23457</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/src/regexpsearch_test.cpp<br />
autotests/src/searchbar_test.cpp<br />
src/CMakeLists.txt<br />
src/document/katedocument.cpp<br />
src/search/kateplaintextsearch.cpp<br />
src/search/kateregexp.cpp<br />
src/search/kateregexp.h<br />
src/search/kateregexpsearch.cpp<br />
src/search/kateregexpsearch.h<br />
src/search/katesearchbar.cpp<br />
src/search/katesearchbar.h<br />
src/utils/katesedcmd.cpp<br />
src/utils/katesedcmd.h</div></div></div><br /><div><strong>To: </strong>ahmadsamir, KTextEditor, dhaumann, cullmann<br /><strong>Cc: </strong>kde-frameworks-devel, kwrite-devel, rrosch, LeGast00n, cblack, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>