On Mon, Jul 29, 2013 at 12:14 PM, Peter Haworth <pete at lcsql.com> wrote: > Personally, I'd use the regex that Thierry posted a couple of days back. > No recursion involved and one line of code does the job. > If you're talking about: matchChunk(mystring,"(\([^)]*\)).*",tstart,tEnd) That will return 1,4 for the string "((()))" gc