RegExp should support boost.regex fully, especially (?s) or (\r\n)+

Started by epfax, August 30, 2009, 04:15:20 PM

Previous topic - Next topic

epfax

Hey All,
I often have to edit multiline pieces of code by Find and Replace. So I really miss the possibility to use an expression that matches more or less lines e.g. "(?s).*" so that the dot can also match one or more "\r\n", or "(\r\n)+" meaning 1 or more linebreaks. Even "\s+" only matches spaces till line end whereas it should match "\n" too according to http://www.boost.org/doc/libs/1_37_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html.

Programmer's Notepad which also uses boost_regex does support these features fully. And I am used to these expressions by Advanced Find And Replace where they do work fine too.

alex

Hi epfax,

this is not a feature request, this is known bug :/. The reason for such limitation internal structure of HE (line based, but not stream based), that could not handle multi line search with undetermined line count correctly.

I am planning to fix this, but this would be only in 1.5x branch, because it is a lot of work and also redesign of  search engine also. And this can lead to big amount of new bugs, which I do not want to introduce in correction version (1.4x).

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]