Title: docs: re.Match.group() does handle numbers >99 · Issue #144694 · python/cpython · GitHub
Open Graph Title: docs: re.Match.group() does handle numbers >99 · Issue #144694 · python/cpython
X Title: docs: re.Match.group() does handle numbers >99 · Issue #144694 · python/cpython
Description: Documentation https://docs.python.org/3.14/library/re.html#re.Match.group if it [groupN arg] is in the inclusive range [1..99], it is the string matching the corresponding parenthesized group. Unlike \1..\99 notation, .group() is not con...
Open Graph Description: Documentation https://docs.python.org/3.14/library/re.html#re.Match.group if it [groupN arg] is in the inclusive range [1..99], it is the string matching the corresponding parenthesized group. Unli...
X Description: Documentation https://docs.python.org/3.14/library/re.html#re.Match.group if it [groupN arg] is in the inclusive range [1..99], it is the string matching the corresponding parenthesized group. Unli...
Opengraph URL: https://github.com/python/cpython/issues/144694
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs: re.Match.group() does handle numbers \u003e99","articleBody":"### Documentation\n\nhttps://docs.python.org/3.14/library/re.html#re.Match.group\n\u003e if it [*groupN* arg] is in the inclusive range [1..99], it is the string matching the corresponding parenthesized group.\n\nUnlike `\\1`..`\\99` notation, .group() is not constrained by 99. \nIt was constrained up to Python 3.4 (`AssertionError: sorry, but this version only supports 100 named groups`) \nbut not since 3.5 (9baa5b2de2e1bd4d56791de8144f737f65b89c74, https://bugs.python.org/issue22437):\n\n```\n\u003e\u003e\u003e re.search('()'*999 + '(y)', 'xy').group(99, 999, 1000)\n('', '', 'y')\n\u003e\u003e\u003e _sre.MAXGROUPS\n1073741823\n```\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-144696\n* gh-145065\n* gh-145066\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/cben","@type":"Person","name":"cben"},"datePublished":"2026-02-10T22:30:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/144694/cpython/issues/144694"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0d79b812-fdf1-acfa-38cc-ce6c5e5e3f56 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C770:726BD:2A99DEB:3C8D899:6A51088C |
| html-safe-nonce | 9d97e5ab9eb30ad443fea2d69d570f99858c9f7d2d86edd0e428d968e291ac89 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzcwOjcyNkJEOjJBOTlERUI6M0M4RDg5OTo2QTUxMDg4QyIsInZpc2l0b3JfaWQiOiI0MjgzMzgxNzUyMzUxNzU0MzgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 983f0d79c82186e3a0bcc090a9980f6187018c3b7c05e0bf9365e9d5e1f1a313 |
| hovercard-subject-tag | issue:3923852453 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/144694/issue_layout |
| twitter:image | https://opengraph.githubassets.com/71941a355e1046683b0d70fdeead5067eafd02faccc77f5ea8435a81afad3b9e/python/cpython/issues/144694 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/71941a355e1046683b0d70fdeead5067eafd02faccc77f5ea8435a81afad3b9e/python/cpython/issues/144694 |
| og:image:alt | Documentation https://docs.python.org/3.14/library/re.html#re.Match.group if it [groupN arg] is in the inclusive range [1..99], it is the string matching the corresponding parenthesized group. Unli... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cben |
| hostname | github.com |
| expected-hostname | github.com |
| None | b076e100febaa00374cd89239f915d00dd3187f7c68b12bc2b7688181305344d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2d129404fc45ea64edb1b98567c53e55b395536f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width