From: spiralofhope Date: 2009-09-01T01:53:12+09:00 Subject: Re: String replace On Tue, 1 Sep 2009 01:42:52 +0900 Shandy Nantz wrote: > @freeform = @freeform.sub(/\[W_FAX\]/, "555-555-5555") Also consider: > @freeform.sub!(/\[W_FAX\]/, "555-555-5555") With "sub!", you can change the variable in-place. -- http://spiralofhope.com