Actions
Bug #22429
openregex empty capture group in a counted loop prevents a match
Bug #22429:
regex empty capture group in a counted loop prevents a match
Status:
Open
Assignee:
-
Target version:
-
ruby -v:
ruby 4.0.7 (2026-09-15 revision 229531a6cf) +PRISM [arm64-darwin27]
Updated by matz (Yukihiro Matsumoto) 3 days ago
I agree this is a bug. An empty capture group should not change whether the pattern matches, and all three patterns should return true. Please fix it.
Matz.
Actions