From: William James Date: 2007-09-26T18:10:03+09:00 Subject: Re: Favorite idiom for "keep doing this until it returns nil/false" On Sep 24, 2:27 pm, Phrogz wrote: > I want to keep running gsub! on a string until it returns nil. How do > you prefer to do this? > > true while str.gsub!( ... ) Less prolix: 0 while str.gsub!( ... )