From: Fritzek Date: 2008-09-19T00:42:24+09:00 Subject: Re: short regexp question Hi Sebastian thanks for the solution. works perfect. Fritzek On 18 Sep., 17:31, Sebastian Hungerecker wrote: > Fritzek wrote: > > short question how to use regexp the right way > > given is a="a[b]c" > > I nedd b="a c" > > "a[b]c".gsub(/\[.*?\]/, " ") > > HTH, > Sebastian > -- > Jabber: sep...@jabber.org > ICQ: 205544826