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
The last perl version that handled this correctly was 5.8.9. Everything from 5.10 on seems to be broken, which points to the trie optimization introduced in 5.10.
Description
Some regexes involving alternations unexpectedly fail to match.
See also: Initial report by jwz and discussion at https://www.jwz.org/blog/2025/01/now-i-have-two-problems/.
"ABCDE" =~ m/ABCF|BCDE|C(G)/
fails"ABCDE" =~ m/ABCF|BCDE|CG/
succeeds"ABCDE" =~ m/ABCF|BCDE|C[Gg]/
fails"ABCDE" =~ m/ABCF|BCD[Ee]|C[Gg]/
succeedsAll of these should match.
The last perl version that handled this correctly was 5.8.9. Everything from 5.10 on seems to be broken, which points to the trie optimization introduced in 5.10.
Steps to Reproduce
Expected behavior
Perl configuration
The text was updated successfully, but these errors were encountered: