From: Hassan Schroeder Date: 2012-08-04T03:45:10+09:00 Subject: Re: Stacking gsub! commands? On Fri, Aug 3, 2012 at 11:28 AM, Wayne Brisette wrote: > Thanks... Maybe I'm looking in the wrong place for the docs, but I don't see any > examples here: > > http://www.ruby-doc.org/core-1.9.3/String.html#method-i-gsub-21 On that page there are 5 examples under gsub, the last one being: 'hello'.gsub(/[eo]/, 'e' => 3, 'o' => '*') #=> "h3ll*" -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com http://about.me/hassanschroeder twitter: @hassan