This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: regex: Support for recursive patterns
Type: enhancement Stage:
Components: Library (Lib), Regular Expressions Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Sworddragon, ezio.melotti, mrabarnett, r.david.murray
Priority: normal Keywords:

Created on 2015-09-30 15:47 by Sworddragon, last changed 2022-04-11 14:58 by admin.

Messages (2)
msg251951 - (view) Author: (Sworddragon) Date: 2015-09-30 15:47
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.
msg251952 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-09-30 16:07
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).
History
Date User Action Args
2022-04-11 14:58:22adminsetgithub: 69469
2016-01-04 03:30:52ezio.melottisetnosy: + ezio.melotti, mrabarnett

components: + Regular Expressions
versions: + Python 3.6, - Python 3.4
2015-09-30 16:19:19vstinnersettitle: Support for recursive patterns -> regex: Support for recursive patterns
2015-09-30 16:07:28r.david.murraysetnosy: + r.david.murray
messages: + msg251952
2015-09-30 15:47:13Sworddragoncreate