Title: add \z as a synonym for \Z in Python REs for standardization · Issue #133306 · python/cpython · GitHub
Open Graph Title: add \z as a synonym for \Z in Python REs for standardization · Issue #133306 · python/cpython
X Title: add \z as a synonym for \Z in Python REs for standardization · Issue #133306 · python/cpython
Description: Feature or enhancement Proposal: Hello - I’m with the Austin Common Standards Revision Group - the joint technical working group established to develop and maintain the core open systems interfaces that are the POSIX™ 1003.1 (and former ...
Open Graph Description: Feature or enhancement Proposal: Hello - I’m with the Austin Common Standards Revision Group - the joint technical working group established to develop and maintain the core open systems interfaces...
X Description: Feature or enhancement Proposal: Hello - I’m with the Austin Common Standards Revision Group - the joint technical working group established to develop and maintain the core open systems interfaces...
Opengraph URL: https://github.com/python/cpython/issues/133306
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add \\z as a synonym for \\Z in Python REs for standardization","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nHello - I’m with the Austin Common Standards Revision Group - the joint technical working group established to develop and maintain the core open systems interfaces that are the POSIX™ 1003.1 (and former 1003.2) standards, ISO/IEC 9945, and the core of the Single UNIX Specification.\n\nWe have had a request to unify/rationalize the regex behaviors for “anchor at string beginning” (^ is the closest in POSIX) and “anchor at string end” ($ is the closest in POSIX). A [description of this problem in depth can be found here](https://www.austingroupbugs.net/view.php?id=1919) and a [table that scopes the varied solutions across varying languages can be found here](https://best.openssf.org/Correctly-Using-Regular-Expressions).\n\nOur working group has come to the conclusion that \\A and \\z are widely implemented across many ecosystems and are the most “standard” solution to the issue. We are asking if the Python community would consider adding “\\z” as a synonym for “\\Z” in their regex lexicon.\n\n\n### Has this already been discussed elsewhere?\n\nI have already discussed this feature proposal on Discourse\n\n### Links to previous discussion of this feature:\n\nhttps://discuss.python.org/t/proposal-add-z-as-a-synonym-for-z-in-python-res-for-standardization/90378/1 \n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-133314\n* gh-133337\n* gh-133338\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/mstevenbrown","@type":"Person","name":"mstevenbrown"},"datePublished":"2025-05-02T15:37:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/133306/cpython/issues/133306"}
| 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:48cf9220-8a33-f609-0fe3-5bcc99bdc4e9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E22E:1FBDE0:8D3A30:BEFE94:6A530C85 |
| html-safe-nonce | e59864016107062f05a1131f733b0ee99c3d2b05843fa69b606c28566a25e152 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjJFOjFGQkRFMDo4RDNBMzA6QkVGRTk0OjZBNTMwQzg1IiwidmlzaXRvcl9pZCI6IjcyNDQ5NTMxMTI0NTY0MDAwMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 53954ed6dfc05d1f866dda8724932ecddf449dd02b3919ef7fab8a736bcfde0a |
| hovercard-subject-tag | issue:3036308157 |
| 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/133306/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2fb0de7321a685c02cb6906bd97e0480a869723d74f6195a28bf232a148f8e3f/python/cpython/issues/133306 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2fb0de7321a685c02cb6906bd97e0480a869723d74f6195a28bf232a148f8e3f/python/cpython/issues/133306 |
| og:image:alt | Feature or enhancement Proposal: Hello - I’m with the Austin Common Standards Revision Group - the joint technical working group established to develop and maintain the core open systems interfaces... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mstevenbrown |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width