From: Tomas Fischer Date: 2006-07-26T22:45:44+09:00 Subject: Re: gsub Hi, thanks for your solutions. But I've forgotten to mention, that r can contain brackets, so the simple way s.gsub(/#{r}$/,'') doesn't work. I use now the reverse, sub approach. Best regards, Tomas -- Posted via http://www.ruby-forum.com/.