Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73806 > unrolled thread
| Started by | Peter Otten <__peter__@web.de> |
|---|---|
| First post | 2014-07-01 21:00 +0200 |
| Last post | 2014-07-01 21:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Get named groups from a regular expression Peter Otten <__peter__@web.de> - 2014-07-01 21:00 +0200
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Date | 2014-07-01 21:00 +0200 |
| Subject | Re: Get named groups from a regular expression |
| Message-ID | <mailman.11383.1404241273.18130.python-list@python.org> |
Chris Angelico wrote: > On Wed, Jul 2, 2014 at 1:29 AM, Peter Otten <__peter__@web.de> wrote: >> Easy, just write a regular expression to parse regular expressions ;) > > Hmm, is that even possible? AIUI you can't make a regex that correctly > parses nested tokens, and named groups can definitely be nested. Hmm, it was a joke. For a limited number of nestings you should be able to cook something up; I think Python allows up to 100 groups, so there is an upper limit of nesting levels. You might need a regex implementation that allows more than 100 groups to parse your regex-parsing regex though...
Back to top | Article view | comp.lang.python
csiph-web