Please remove PCRE-compatible from features
-
Hello there, don’t know where the development issues are hosted, but please pass this along to them:
- Please remove PCRE compatible tag from features, that’s not true, it does not handle lookbehinds. Either remove the tag, or specify that it does not handle lookbehinds, specifically. That’s misleading.
Thanks!
-
I don’t really understand what you mean but I assume it should be reported here anyway.
Cheers
Claudia -
http://docs.notepad-plus-plus.org/index.php/Regular_Expressions mentions “PCRE” (Perl Compatible Regular Expressions) six times, the first of which is: “Notepad++ regular expressions use the standard PCRE (Perl) syntax…”
This may originate from the release notes of version 6 of Notepad++ (https://notepad-plus-plus.org/download/v6.0.html) which state: “PCRE (Perl Compatible Regular Expressions) is supported.”
Recent Notepad++ versions support Boost-compatible regular expressions, not PCRE. I don’t know the complete history–maybe in the beginning (6.0) the PCRE flavor of regex was supported? Or maybe it was always Boost’s engine and it was just referred to incorrectly in the beginning, and that has been allowed to persist?
Regardless, the OP is correct – “PCRE” has no business being in the documentation.
That being said, I’m not sure what the OP @Shean-Gibber is meaning with “does not handle lookbehinds”. Notepad++'s Boost regex engine DOES handle lookbehinds; both positive lookbehinds and negative lookbehinds. Examples:
- Positive lookbehind:
(?<=a)bmatches a “b” only when preceded by an “a” - Negative lookbehind:
(?<!a)bmatches a “b” that is NOT preceded by an “a”
Lookbehinds must be of fixed length; it is hard for a regex engine to go backwards in a variable-length way.
- Positive lookbehind:
-
Notepad++ uses the
Boost Regexlibrary which is a PCRE (Perl Compatible Regular Expression) library. The confusion is the result of a different regular expression library named “PCRE”. -
And we propagate the confusion… :-D
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login