#351 Full Regular Expression support

Don HO

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.


  • Dave Brotherstone

    • assigned_to: nobody --> donho
  • Dave Brotherstone

    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 HO

    Don HO - 2012-02-04
    • priority: 5 --> 8
  • Dave Brotherstone

    Patch updated to fix UTF8 issue and add ". matches newline" option to find dialog.

  • Dave Brotherstone

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

  • Dave Brotherstone

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

  • Dave Brotherstone

    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

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

Sign up for the SourceForge newsletter:

No, thanks