New in Version 15.7
New Regular Expression Engine
You can now selectOnigmo as the regular expression engine in addition toBoost.Regex. IfOnigmo is selected as the regular expression engine, you can use character types such asp{Han},p{Hangul},p{Hebrew}, etc. To find more details about theOnigmo regular expression syntax, please viewhttps://github.com/k-takata/Onigmo/blob/master/doc/RE and Unicode Propertieshttps://github.com/k-takata/Onigmo/blob/master/doc/UnicodeProps.txt.
Test results
WhileFind,Replace, andFilter tasks using some regular expressions are much faster usingOnigmo compared toBoost.Regex,Boost.Regex becomes faster with some other regular expressions. Since the development is still in progress, the test results might be changed in the future.
expression | Boost.Regex | Onigmo | |
positive lookbehind | (?<=a)b | 10.23 seconds | 3.94 seconds |
negative lookbehind | (? | 14.77 seconds | 4.01 seconds |
positive lookahead | a(?=b) | 4.02 seconds | 4.04 seconds |
negative lookahead | a(?!b) | 8.48 seconds | 4.23 seconds |
character range | [a-c] | 14.08 seconds | 5.73 seconds |
selection | john|jack|james | 3.55 seconds | 3.80 seconds |
beginning of line | ^”a | 3.50 seconds | 3.61 seconds |
* Filter, case insensitive, number of thread 4, 340 MB, 1.92 million line file
Windows 10 (64-bit) Core i7-4790 16GB RAM
Treat CR and LF separately
This version allows you to search and replace CR and LF separately.
If you try to search for a string containing r (CR) while theTreat CR and LF separately option is disabled, the prompt message“The search string contains CR. Do you want to enable the Treat CR and LF Separately option?” will appear now.
Other New Features
New features
- If the last line of the document is empty, regular expressions will not match the last line anymore.
New options
- TheDefault Regular Expression Engine drop-down list box was added to theSearch tab of theCustomize dialog box.
- TheCustomize button was replaced withAdvanced button in theFind/Replace dialog boxes. In theAdvanced dialog box, more search options are included now.
- TheAdvanced button was added to the Find toolbar.
- TheShow the Start window when the Down key is pressed on a new document check box was added to theCustomize Start Window dialog box.
New commands
- Advanced (Find toolbar)
Plug-in New Features
- TheCollapse All andExtract All commands were added to the context menu on theSymbol list of theProjects plug-in.
Plug-in API New Features
- TheEE_FIND_REPLACE message was added.
- TheEditor_FindReplace,Editor_FindInFiles, andEditor_ReplaceInFiles inline function were added.
- TheFIND_REPLACE_INFO,GREP_INFO_EX,MATCH_REGEX_INFO_EX, andFIND_REGEX_INFO_EX structures were added.
Macro New Features
- TheeeFindMatchDotNL flag was added to thenFlags parameter andeeExFindRegexBoost,eeExFindRegexOnigmo andeeExFindSeparateCRLF flags were added to thenExFlags parameter of theFind method andReplace method of theSelection object.
Acknowledgement
We would like to thank K. Kosako (Oniguruma) and K. Takata (Onigmo) who created the amazing regular expression engine.