Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using the new PCRE2 library #816

Closed
h-h-h-h opened this issue Aug 28, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@h-h-h-h
Copy link
Contributor

commented Aug 28, 2015

Hello,

the PCRE library has changed its API and will provide new features only by means of the new API. Notepad++ should therefore switch to the new one.

Let me quote the official website (http://www.pcre.org/):

The original, very widely deployed PCRE library, originally released in 1997, is at version 8.37, and the API and feature set are stable—future releases will be for bugfixes only. All new future features will be to PCRE2, not the original PCRE 8.x series.

You can find a summary of the changes under the following link: https://lists.exim.org/lurker/message/20150105.162835.0666407a.en.html.


Related discussion: https://notepad-plus-plus.org/community/topic/9703/is-it-planned-to-switch-to-pcre2

@h-h-h-h

This comment has been minimized.

Copy link
Contributor Author

commented Sep 2, 2015

PCRE2 makes a feature available to replace according to a list with only one regular expression. This is done via the pcre2_substitute() or the pcre2_get_mark() function.

Example:

Target:       apple lemon
Find:         apple(*:pear)|lemon(*:orange)
Replace with: ${*MARK}
Result:       pear orange

View the latest version of the following file to see the documentation about this: http://vcs.pcre.org/pcre2/code/trunk/doc/pcre2.txt (rev. 369). Search for:

  • ${*MARK}
  • PCRE2_ALT_VERBNAMES

Is it possible to make this functionality available in Notepad++? Note: To allow any replacement string in (*:...), PCRE2_ALT_VERBNAMES has to be set. It allows escaping (e.g., \)), free spacing ((?x)) and comments (#).


PCRE2_SUBSTITUTE_EXTENDED should also be set to allow for conditional substitutions when pcre2_substitute() is used. The syntax in the replacement string is: ${name:+set string:unset string}. See the corresponding feature request for additional information.

@Erutan409

This comment has been minimized.

Copy link

commented Oct 17, 2015

Is there any efforts being made on this topic? I'm sorely missing the functionality I'd expect in PCRE, such as: backtracking control verbs.

@MetaChuh

This comment has been minimized.

Copy link
Member

commented Apr 9, 2019

we are closing this issue due to its age and multiple newer notepad++ versions since it was filed.

please update your notepad++ to the latest version Notepad++ 7.6.6.
if your issue persists, and it is still of relevance to you, please feel free to file a new issue.

thank you for your help and best regards.


general notes:

please close your issues as soon as you are satisfied, to help
keeping the notepad++ issue tracker clean.

when creating a new issue, please provide all information as shown at the issue template.
your notepad++ debug info is part of the minimum requirements.
(? > Debug Info... > Copy debug info into clipboard).

please also conduct a search at the issue tracker beforehand, to check if a similar issue
already exists.

for general questions, or if it is not sure, whether your issue is directly related to
the notepad++ source code, please visit us at the notepad++ community forum, and
search if related topics exists. you are welcome to post either at similar
topics, or to create a new topic at Help Wanted or General Discussion.

                        Click here to visit the Notepad++ Community Forum                         

@MetaChuh MetaChuh closed this Apr 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.