From: jackster the jackle Date: 2008-09-27T21:22:55+09:00 Subject: Re: Trying to use gsub using variables thanks guys...I'm making progress but what I have been slowly leading up to is searching using a variable then replacing it with a variable. acl = "now is the time" x = time y = TEST acl.gsub(/x/,y) How do I get gsub to use the value of x rather "x" itself in my match? thanks Jackster -- Posted via http://www.ruby-forum.com/.