From: Dirk Einecke Date: 2004-07-12T02:17:26+09:00 Subject: Syntax question for gsub Hi. I've a litte syntax question. I read a HTML file and change all between the html tag: fileContent.gsub!( /(.*?)<\/html>/ ) { 'foo' } Now I want to set the tag type dynamicly like this: tagName = 'html' fileContent.gsub!( /(.*?)<\/html>/ ) { '<'+tagName+'>foo' } But how can I insert the var 'tagName' in the first part ( /(.*?)<\/html>/ ) ? Can anybody help me with this small problem? greetings Dirk Einecke