cullmann added a comment.
I thought a bit about the problem with multi-line regex. I think we can solve this in a consistent way by allowing to incremental do matches that span more than one line. See the first example code in this commit: https://cgit.kde.org/ktexteditor.git/commit/?id=dbebf059575f83608c941111ac3a6d374667b5a6 This would allow to handle multi-line regex matching just like normal matching, the search code would take care to on-demand concatenate enough lines for partial matches. REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D19367 To: loh.tar, #ktexteditor, dhaumann, cullmann Cc: cullmann, kwrite-devel, kde-frameworks-devel, #ktexteditor, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, sars, dhaumann