#351 Full Regular Expression support

Next_release
closed
Don HO
None
8
2012-04-08
2012-01-31
No

Full regular expression support, using boost::regex. The patch includes a batch file to build neatly build the bits of boost that need building, and actually only adds a single line to the scintilla makefile (scintilla.mak).

Simply unpack boost from the standard download (from www.boost.org), and run
scintilla\boostregex\BuildBoost.bat c:\path\to\boost

Then build scintilla as normal with the standard nmake -f scintilla.mak

The N++ modifications are only to cope with identifying an invalid regular expression, rather than simply saying "not found".

Based on the work of Simon Steele for Programmer's Notepad 2 - although this is converted to use boost::regex instead of boost::xpressive.

It's a tad quicker than the built-in reg-ex, and supports all modern regular expression operators, including back-references and multi-line searching. Named groups are also supported, and can be used in the "replace" string.

Based on revision 860, although the scintilla part should be fine a long way back as it only adds a single line.

Discussion

    • assigned_to: nobody --> donho
     
  • Spotted an issue with extended characters. Fix on the way.

     
  • Don HO
    Don HO
    2012-02-04

    I cannot download these 2 patches.
    Could you send them to me?

    Thank you
    Don

     
  • Don HO
    Don HO
    2012-02-04

    • priority: 5 --> 8
     
  • Patch updated to fix UTF8 issue and add ". matches newline" option to find dialog.

     
  • Fix for change in encoding and then a repeat search of the same regex

     
  • Updated patch, with reverse regex fix, and xml tag highlighter fix

     
    Attachments
  • Updated patch file (to regex-patch5.7z). fixes issue with reverse regex, and speeds up xml tag highlighter.

     
  • Don HO
    Don HO
    2012-04-08

    • status: open --> closed