From: Dudebot Date: 2010-02-28T03:59:07+09:00 Subject: Interpolation question Why does text = <wibble of stuff bobble ENDTEXT wibble = 2.0 bobble = 3.0 newtext = text.gsub( /(.*?)<\/field>/, "#{\1}" ) puts newtext throw this error: ./test.rb:13: syntax error, unexpected $undefined newtext = text.gsub( /(.*?)<\/field>/, "#{\1}" ) and not interpolate to produce this is an 2.0 of stuff 3.0 ? And how can I do that interpolation? (adding \s to \1, e.g. \\1 doesn't help) Many TIA, Craig