Originally Posted By: peter
a regex can't count the brace pairs


Absolutely true, but if git's using PCRE, those aren't regexes in the technical sense, and here's some Perl that uses a "regex" to match the brace pairs: http://stackoverflow.com/a/133771/8446
_________________________
-- roger