Hi folks

short question how to use regexp the right way
given is a="a[b]c"
I nedd b="a c"

tried to split using (/(\[|\])/) to get  ["a", "[", "b", "]", "c"]

 b=a.strip.split(/(\[|\])/)

and then joined the bits together. this just works in a simple case
like "a[b]c", but "[b]" could occur multiple times.

I need something like search for any "[b]" and substitute with a
blank.

Thanks in advance

Fritzek