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

PCRE2_ENDANCHORED option missing? #34

Closed
alazifk opened this issue Oct 28, 2021 · 2 comments
Closed

PCRE2_ENDANCHORED option missing? #34

alazifk opened this issue Oct 28, 2021 · 2 comments

Comments

@alazifk
Copy link

alazifk commented Oct 28, 2021

Hello,

the docs say matching has the following option flag:
PCRE2_ENDANCHORED Pattern can match only at end of subject
but it seems to be undefined. PCRE2_ANCHORED on the other hand works as expected, so I wanted to check if this is a known issue.

@PhilipHazel
Copy link
Collaborator

Which version of PCRE2 are you using? This option was introduced in 10.30 and it seems to be working fine:

$ pcre2test zz
PCRE2 version 10.37 2021-05-26
/abcd/endanchored
1234abcd
0: abcd
abcd1234
No match

@alazifk
Copy link
Author

alazifk commented Oct 28, 2021

10.10, my bad, I must have cloned the luvit repository instead of yours. Thank you for the help.

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

2 participants