From: Chris Morris Date: 2003-07-23T21:54:11+09:00 Subject: Re: RegExp outermost () Warren Brown wrote: > If all you want is to find the matching parenthesis, you could use a >function like: > Thx - that's more or less what I ended up doing. > raise "Mismatched parentheses" unless str.count('(') == str.count(')') > ... and this is a handy tidbit I didn't think of. Thx. -- Chris http://clabs.org/blogki