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?
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?
No, so far Perl/PCRE and .NET are the only regex flavors that support arbitrary nesting (recursive patterns).
No, but if you have a particular use case to discuss you'll often find that you don't need regexes. Simple state-machines to match parenthases are pretty simple to write in lisp. Looking at the source of Paredit is a good place to start.