LoginSignup
0
0

More than 5 years have passed since last update.

正規表現でMatch groupsごとにさらにグループができる場合について

Posted at

メモのためにまとめ

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0