From: Fritzek Date: 2008-09-19T00:17:24+09:00 Subject: Re: short regexp question Hi Brian thanks for your answer. as I stated to David, I just know about the surrounding brackets not the bits between them. Fritzek On 18 Sep., 17:08, Brian Candler wrote: > > b = a.gsub(/\[b\]/,' ') > > Also possibly useful is for you: > > a = "aaa[b]bbb[b]ccc" > bits = a.split(/\[b\]/) > > -- > Posted viahttp://www.ruby-forum.com/.