From: 7stud -- Date: 2012-12-21T10:29:51+09:00 Subject: Re: Subtracting strings John Sampson wrote in post #1089759: > On 20/12/2012 18:22, Calvin Bornhofen wrote: >> Hello, >> >> yes, there is (two, actually). They are called String#gsub and >> String#gsub!, respectively. >> >> Regards >> >> >> > Many thanks - I did not know one could have a variable as an argument > Any place a literal, e.g. 10, 'hello', [1, 2, 3], is used, a variable containing one of those values can be used in its place. -- Posted via http://www.ruby-forum.com/.