From: Robert Klemme Date: 2008-09-27T18:29:34+09:00 Subject: Re: Trying to use gsub using variables On 27.09.2008 05:18, Nit Khair wrote: > jackster the jackle wrote: > >> Here is my code that is not working: >> >> x = "NEW_WORD" >> acl.gsub!(/WORD_TO_MATCH_AND_REPLACE/, x ) >> > > the x is fine, your text inside the /../ would be wrong. How do you know? OP has neither posted what's in "acl" nor what he intends to replace. robert