From: matz@... (Yukihiro Matsumoto) Date: 2003-11-20T20:57:58+09:00 Subject: Re: behaviour change of String#gsub(pattern) {|m| ... } for ruby 1.9/ruby2? Hi, In message "behaviour change of String#gsub(pattern) {|m| ... } for ruby 1.9/ruby2?" on 03/11/20, David Garamond writes: |String#gsub(pattern) {|m| ... } | |It really would be nice to get match data in 'm', but this would surely |break _a lot_ of scripts. How about String#regsub, #regsub!, #resub, |#resub! ? What do others think? Sounds nice. The only reason for the current behavior is that sub predates MatchData. But we have to define migration path. matz.