R. David Murray added the comment:
According to this:
http://www.rexegg.com/regex-recursion.html
regex supports recursive regex, so the thing to do would be to help work toward
getting regex into the standard library (what we need for that, from what I
understand, is code reviews).
--
New submission from Sworddragon:
It seems Python's own regular expressions aren't able of handling nested
structures so maybe this can be enhanced like it is done with PCRE's recursive
patterns.
--
components: Library (Lib)
messages: 251951
nosy: Sworddragon
priority: normal
severity: