PCRE2Project / pcre2

PCRE2 development is now based here.
Other
909 stars 191 forks source link

PCRE2_ENDANCHORED option missing? #34

Closed alazifk closed 3 years ago

alazifk commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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