From: Spock Date: 2005-08-08T06:11:08+09:00 Subject: Re: sub(/variable/,'') James Edward Gray II napisal(a): > On Aug 7, 2005, at 3:16 PM, Marcin Jurczuk wrote: > > > > How use variable "a" as sub argument ? > > Just as you include a variable in a string: > > b.sub(/#{a}/, "") > > Hope that helps. > > James Edward Gray II It helps a lot :) Thx.