メモのためにまとめ
123--abc,123--abc,123--abc
を(\d*)--([a-z]*)
でマッチするとこうなる。
Match 1
1. 123
2. abc
Match 2
1. 123
2. abc
Match 3
1. 123
2. abc
https://stackoverflow.com/questions/4692437/regex-with-named-capture-groups-getting-all-matches-in-ruby
http://rubular.com/r/tVl3A1RZSI