From: Vincent Fourmond Date: 2006-07-26T20:47:46+09:00 Subject: Re: gsub Hello ! > s.gsub(/XX\z/,'') solves the problem in a static way. > s.gsub(r,'') solves it too, but who can I specify, that only the last > occurence should be replaced. Would s.gsub(/#{r}$/,'') do what you want ? Vince