From: James Coglan Date: 2009-09-01T01:54:27+09:00 Subject: Re: String replace --001517478384d9d717047272e206 Content-Type: text/plain; charset=ISO-8859-1 2009/8/31 Shandy Nantz > I got it: @freeform = @freeform.sub(/\[W_FAX\]/, "555-555-5555"). I > guess that's what I get for not reading a little further in my Ruby > book. You might also want String#gsub -- #sub only replaces the first match, #gsub ("global substitute") replaces all matches. -- James Coglan http://jcoglan.com --001517478384d9d717047272e206--