robertmorelli (Robert Morelli)
- Login: robertmorelli
- Registered on: 10/08/2026
- Last sign in: 10/08/2026
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 3 | 0 | 3 |
Activity
10/12/2026
-
09:35 AM Ruby Bug #22430 (Open): regex counted group with a zero-width iteration misses a match
- repro:
```ruby
/\A(?:a|^){2}\z/.match?("a") # true
/\A(?:a|^){2,3}\z/.match?("a") # false
/\A(?:\B|a){3}\z/.match?("aa") # false
/\A(?:^a*){2,3}\z/.match?("a") # false
```
Perl and Python return true for all four. Possib... -
09:33 AM Ruby Bug #22429 (Open): regex empty capture group in a counted loop prevents a match
- repro:
```ruby
/\A(?:(){1,2}?a)+\z/.match?("aa") # false
/\A(?:(?:){1,2}?a)+\z/.match?("aa") # true
/\A(?:(){1,2}a)+\z/.match?("aa") # true
```
An empty capture `()` behaves differently from `(?:)`. Perl, Python and Onig...
10/08/2026
-
02:20 PM Ruby Bug #22418 (Open): Regex counted repetition disagrees with expanded equivalent pattern
- repro:
```ruby
/(?:u|\b){3}d/.match?("uud") # false
/(?:u|\b)(?:u|\b)(?:u|\b)d/.match?("uud") # true
```
The counted repetition should be equivalent to duplicating the group but it is not.