Hi Sebastian

thanks for the solution. works perfect.

Fritzek

On 18 Sep., 17:31, Sebastian Hungerecker <sep... / googlemail.com>
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