You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Came up with another project which led to it being an issue with the library itself as it also fails with pcre2test. For a full discussion see this bug:
and only affects the matching when the last character in the class doesn't correspond to the correct case that is shown in the data, because is registered as literal (and not caseless)
$ printf "/[Aa]{2}/\naa\n" | pcre2test
PCRE2 version 10.39 2021-10-29
/[Aa]{2}/
aa
No match
This was an optimization bug. [Aa] is turned into caseless 'A' but when it was last in a pattern, the "must have this character" optimization was not getting flagged as caseless. I have committed a small patch that fixes this. Thanks for the report and triage.
Came up with another project which led to it being an issue with the library itself as it also fails with pcre2test. For a full discussion see this bug:
firasdib/Regex101#1704 (comment)
php/php-src#7994
Basically given "aa" [a]{2} fails, [a]{1,3} works.
Sorry took a weird path to end up at this place as didn't realized this was just a library everybody used lol.
The text was updated successfully, but these errors were encountered: