Hi.

Marcin Miel?y?ski wrote:
> Dnia 2004-07-11 19:14, U?ytkownik Dirk Einecke napisa?:
> 
>> But how can I insert the var 'tagName' in the first part
>>   ( /<html>(.*?)<\/html>/ )
>> ?
>>
>> Can anybody help me with this small problem?
> 
> try:
> 
> gsub!( /<(.+)>(.*?)<\/\1>/ ) { "<#{$1}>foo</#{$1}>" }
> 
> or even:
> 
> gsub!( /<(.+)>(.*?)<\/\1>/,'<\1>foo<\1>' )

But this is only working for the tag "html". If I wont to use an other 
tag (like "title" or "head") I can not use your solution. :(

greetings
Dirk Einecke