How do I reference match 2 and match 3 of a regexp?
http://rubular.com/r/faAwIE98uz
I know I can reference several match groups with $1 and $2 and so on, but I want to reference just the matches of a single group.
--update--
I want to use this regexp (\d{1,3})
with the input 123456789
and reference these matches:
Match 1
- 123
Match 2
- 456
Match 3
- 789