From: alex fenton Date: 2003-07-23T07:58:56+09:00 Subject: Re: RegExp outermost () Chris Morris wrote: > This may be a case where RegExp ain't the way to go, but I want to scan > a string with nested paren groups and extract each outermost group. Is > this best done in an RegExp? Hi No, for the reasons previous posters have pointed out. You might be interested in the Nested Paren Reader library on the RAA. http://raa.ruby-lang.org/list.rhtml?name=npreader I didn't write it, but it's worked for me in the past. cheers alex __ http://www.pressure.to/