>>>>> "B" == Bryan Zarnett <bryan_zarnett / yahoo.ca> 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