# New in Version 15.7

---

*December 16, 2015*

- [New Regular Expression Engine](#new_regular_exp_engine)
- [Treat CR and LF separately](#treat_cr_lf_separately)
- [Other New Features](#other_features)

---

## New Regular Expression Engine {#new_regular_exp_engine}

---

You can now select **Onigmo** as the regular expression engine in addition to **Boost.Regex**. If **Onigmo** is selected as the regular expression engine, you can use character types such as **p{Han}**, **p{Hangul}**, **p{Hebrew}**, etc. To find more details about the **Onigmo** regular expression syntax, please view [https://github.com/k-takata/Onigmo/blob/master/doc/RE](https://github.com/k-takata/Onigmo/blob/master/doc/RE) and Unicode Properties [https://github.com/k-takata/Onigmo/blob/master/doc/UnicodeProps.txt](https://github.com/k-takata/Onigmo/blob/master/doc/UnicodeProps.txt).

### Test results

While **Find**, **Replace**, and **Filter** tasks using some regular expressions are much faster using **Onigmo** compared to **Boost.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.

<table>
<tbody>
<tr>
<td></td>
<td>expression</td>
<td>Boost.Regex</td>
<td>Onigmo</td>
</tr>
<tr>
<td>positive lookbehind</td>
<td>(?
</td><td>10.23 seconds</td>
<td>3.94 seconds</td>
</tr>
<tr>
<td>negative lookbehind</td>
<td>(?
</td><td>14.77 seconds</td>
<td>4.01 seconds</td>
</tr>
<tr>
<td>positive lookahead</td>
<td>a(?=b)</td>
<td>4.02 seconds</td>
<td>4.04 seconds</td>
</tr>
<tr>
<td>negative lookahead</td>
<td>a(?!b)</td>
<td>8.48 seconds</td>
<td>4.23 seconds</td>
</tr>
<tr>
<td>character range</td>
<td>[a-c]</td>
<td>14.08 seconds</td>
<td>5.73 seconds</td>
</tr>
<tr>
<td>selection</td>
<td>john|jack|james</td>
<td>3.55 seconds</td>
<td>3.80 seconds</td>
</tr>
<tr>
<td>beginning of line</td>
<td>^”a</td>
<td>3.50 seconds</td>
<td>3.61 seconds</td>
</tr>
</tbody>
</table>

\
 \* Filter, case insensitive, number of thread 4, 340 MB, 1.92 million line file\
 Windows 10 (64-bit) Core i7-4790 16GB RAM

![Customize dialog Search tab](/media/2015/11/search_regular_expression_engine.webp)

---

## Treat CR and LF separately {#treat_cr_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 the **Treat 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.

![Find dialog Advanced options](/media/2015/12/find_advanced-1.webp)

---

## Other New Features {#other_features}

---

### New features

- If the last line of the document is empty, regular expressions will not match the last line anymore.

### New options

- The **Default Regular Expression Engine** drop-down list box was added to the **Search** tab of the **Customize** dialog box.
- The **Customize** button was replaced with **Advanced** button in the **Find**/**Replace** dialog boxes. In the **Advanced** dialog box, more search options are included now.
- The **Advanced** button was added to the Find toolbar.
- The **Show the Start window when the Down key is pressed on a new document** check box was added to the **Customize Start Window** dialog box.

![Customize Start Window dialog](/media/2015/12/customize_start_window.webp)

### New commands

- Advanced (Find toolbar)

### Plug-in New Features

- The **Collapse All** and **Extract All** commands were added to the context menu on the **Symbol** list of the **Projects** plug-in.

### Plug-in API New Features

- The **EE_FIND_REPLACE** message was added.
- The **Editor_FindReplace**, **Editor_FindInFiles**, and **Editor_ReplaceInFiles** inline function were added.
- The **FIND_REPLACE_INFO**, **GREP_INFO_EX**, **MATCH_REGEX_INFO_EX**, and **FIND_REGEX_INFO_EX** structures were added.

### Macro New Features

- The **eeFindMatchDotNL** flag was added to the **nFlags** parameter and **eeExFindRegexBoost**, **eeExFindRegexOnigmo** and **eeExFindSeparateCRLF** flags were added to the **nExFlags** parameter of the **Find** method and **Replace** method of the **Selection** object.

### 

### Acknowledgement

We would like to thank K. Kosako (Oniguruma) and K. Takata (Onigmo) who created the amazing regular expression engine.
