From: Phrogz Date: 2007-09-25T04:30:05+09:00 Subject: Favorite idiom for "keep doing this until it returns nil/false" I want to keep running gsub! on a string until it returns nil. How do you prefer to do this? true while str.gsub!( ... ) while str.gsub!( ... ); end begin done = !str.gsub!( ... ) end until done begin made_replacement = str.gsub!( ... ) end while made_replacement ...some other way?