#80 Solution for RegExp failure Version 5.0.2

Next_major_release
closed
nobody
None
5
2014-08-17
2008-07-29
No

Given file with 3 lines, first line "a", second "b" and third being empty.
Tested 2 RegExp "^[^(]+$" and which "^[^(]*$" fail under in the current version. Just run both RE against file with/without wrap around and additionally with Mark line and find all in Search Dialogue, as well as doing some replacement with both patterns, e.g. searching for pattern "^([^(]*)$" and replacing with "\1\1" and again with/without wrap around.

With the given modifications all szenarios above work:

replace following lines in FindReplaceDlg.cpp:

846:
if (posFind == -1 || startPosition == posFind && endPosition == posFind)
867:
if (posFind == -1 || startPosition == posFind && endPosition == posFind)
1144:
return nbProcessed; //return -1;

and in file RESearch.cxx:

851:
if (c == 0 || !isinset(ap,c))

Discussion

  • CarlosCastaneda

    CarlosCastaneda - 2008-08-05

    Logged In: YES
    user_id=1829944
    Originator: YES

    The RESearch.cxx patch has been applied in the recent code line of scintilla project.

     
  • Don HO

    Don HO - 2014-08-17
    • status: open --> closed
    • Group: --> Next_major_release
     
  • Don HO

    Don HO - 2014-08-17

    Outdated.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks