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

re_replace doesn't use the PCRE2 functions #28

Open
kamahen opened this issue Mar 12, 2023 · 0 comments
Open

re_replace doesn't use the PCRE2 functions #28

kamahen opened this issue Mar 12, 2023 · 0 comments

Comments

@kamahen
Copy link
Member

kamahen commented Mar 12, 2023

re_replace/5 has Prolog code for doing the replacement. PCRE2 has support for replacement (I don't think this was in PCRE1), so it might make sense to use the PCRE2 code rather than the Prolog code - possibly the PCRE2 has features that aren't in the current code.
However, this would likely break compatibility, so might not be worth doing; especially as Prolog as DCGs, which are often more flexible (and even more efficient) than regexps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant