From: ts Date: 2000-12-31T23:39:48+09:00 Subject: [ruby-talk:8418] Re: VVariables in regular expression patterns >>>>> "B" == Bryan Zarnett writes: B> puts template.gsub(/searchValue/,'blah') ruby think that you want to substitute the string `searchValue'. You must say that it must expand the variable, try with : puts template.gsub(/#{searchValue}/,'blah') You can also directly write (i.e. without //) puts template.gsub(searchValue,'blah') Guy Decoux