Author Topic: RegExp should support boost.regex fully, especially (?s) or (\r\n)+  (Read 519 times)

Offline epfax

  • Newbie
  • *
  • Posts: 3
  • Karma: +1/-0
    • View Profile
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.

Online alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: RegExp should support boost.regex fully, especially (?s) or (\r\n)+
« Reply #1 on: August 31, 2009, 11:07:09 am »
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.

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
1025 Views
Last post February 01, 2009, 01:31:11 pm
by Stefan
6 Replies
800 Views
Last post March 30, 2009, 08:08:40 am
by Stefan
4 Replies
629 Views
Last post April 24, 2009, 03:50:23 pm
by alex
3 Replies
443 Views
Last post April 09, 2010, 01:30:15 pm
by alex
2 Replies
720 Views
Last post August 23, 2009, 10:32:43 am
by Yu Ru A.G