Regex101 icon indicating copy to clipboard operation
Regex101 copied to clipboard

Boost (Notepad++) flavor

Open ryanstull opened this issue 9 years ago • 5 comments

Add support for the notepad++ style of regexes

ryanstull avatar Feb 08 '16 22:02 ryanstull

Notepad++ actually uses Boost regex. From my testing, it seems that it doesn't use u32regex, so Unicode character classes (\p{...}) are not available.

Anyway, Boost and PCRE regex are quite close. Unless you are using equivalence class ([=...=]) and Unicode character classes, the rest are quite similar.

nhahtdh avatar Feb 15 '16 02:02 nhahtdh

i can attest to backtracking control verbs NOT being supported in Notepad++, unfortunately :disappointed:

Erutan409 avatar Feb 22 '16 20:02 Erutan409

The current README.md file suggests that it's using Boost 1.5.5, which doesn't seem to support backtracking control verb. It really depends on the library version.

nhahtdh avatar Feb 23 '16 02:02 nhahtdh

Boost Regex also supports conditionals in the Substitution. (At least I couldn't figure out if it is possible in one of the existing flavors) Also, {} have to be escaped always except inside []

Guest93 avatar Mar 14 '16 14:03 Guest93