matz / netlab.co.jp (Yukihiro Matsumoto) writes: > Hi, > > In message "[ruby-talk:01229] A vote for old behavior" > on 00/02/03, Dave Thomas <Dave / thomases.com> writes: > > |Could I put in a vote for a return to the old behavior of 'gsub!' ? > | > |Sometimes it's nice to be able to write > | > | 1 while gsub!(....) > | > |(for example while matching nested syntactical constructs) > > After discussing seriously at ruby-dev mail list, I changed my mind > (again) to restore old behavior. Sorry for confusion I may cause. So, just to confirm - sub! and gsub! will return nil if there's no change. Thanks for considering the change. Dave