emacs: Is it possible to match strings with balanced parens with emacs regex?

emacs, regex

Solution

No, so far Perl/PCRE and .NET are the only regex flavors that support arbitrary nesting (recursive patterns).

Problem

Something like this: http://perl.plover.com/yak/regex/samples/slide083.html In other words I want to match successfully on `{ { foo } { bar} }` but not on `{ { foo }` . I see it's possible in perl, and in .NET. Is it possible in emacs regex?

Original source