René's URL Explorer Experiment


Title: WIP: Various updates to the Regex HOWTO by akuchling · Pull Request #107825 · python/cpython · GitHub

Open Graph Title: WIP: Various updates to the Regex HOWTO by akuchling · Pull Request #107825 · python/cpython

X Title: WIP: Various updates to the Regex HOWTO by akuchling · Pull Request #107825 · python/cpython

Description: As people sent me comments over the years, I've been collecting user feedback on the Regex HOWTO. This PR will contain the resulting set of changes. It is currently still work-in-progress; I have a lengthy list of changes that I'm making. I'll try very hard to keep each commit completely and logically separated, so you may want to proofread commit-by-commit. Feel free to cherry-pick particular commits into main if you like while other commits get worked on; I can rebase or merge and try to keep things coherent. 📚 Documentation preview 📚: https://cpython-previews--107825.org.readthedocs.build/

Open Graph Description: As people sent me comments over the years, I've been collecting user feedback on the Regex HOWTO. This PR will contain the resulting set of changes. It is currently still work-in-progress; I h...

X Description: As people sent me comments over the years, I've been collecting user feedback on the Regex HOWTO. This PR will contain the resulting set of changes. It is currently still work-in-progress;...

Opengraph URL: https://github.com/python/cpython/pull/107825

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c210187c-0c13-b0f2-a4c7-96193247a00c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9674:A56AD:1D8F28:2B0CB5:6A4DFF48
html-safe-nonce702dc04feca938ef7e161232ae210d226d0584c0bef025b41b29c6fbaafc529c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Njc0OkE1NkFEOjFEOEYyODoyQjBDQjU6NkE0REZGNDgiLCJ2aXNpdG9yX2lkIjoiMjUyNTM5NDY1OTkzNDIwNjE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacff059ea6163cd17d3d67604a78ba23581be8da5c78d710a560f4987518ccf059
hovercard-subject-tagpull_request:1469439241
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/107825/files
twitter:imagehttps://avatars.githubusercontent.com/u/204654?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/204654?s=400&v=4
og:image:altAs people sent me comments over the years, I've been collecting user feedback on the Regex HOWTO. This PR will contain the resulting set of changes. It is currently still work-in-progress; I h...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonedf0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release52bde38e24398476f8eb1e0760c81346c6a00812
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/107825/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F107825%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F107825%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/107825/files
Reloadhttps://github.com/python/cpython/pull/107825/files
Reloadhttps://github.com/python/cpython/pull/107825/files
Please reload this pagehttps://github.com/python/cpython/pull/107825/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/107825/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
akuchlinghttps://github.com/akuchling
python:mainhttps://github.com/python/cpython/tree/main
akuchling:update-regex-howtohttps://github.com/akuchling/cpython/tree/update-regex-howto
Conversation 26 https://github.com/python/cpython/pull/107825
Commits 26 https://github.com/python/cpython/pull/107825/commits
Checks 2 https://github.com/python/cpython/pull/107825/checks
Files changed https://github.com/python/cpython/pull/107825/files
Please reload this pagehttps://github.com/python/cpython/pull/107825/files
WIP: Various updates to the Regex HOWTO https://github.com/python/cpython/pull/107825/files#top
Show all changes 26 commits https://github.com/python/cpython/pull/107825/files
9580098 Remove most uses of the word 'obvious' akuchling Apr 26, 2023 https://github.com/python/cpython/pull/107825/commits/958009838ca7d289dce27d6cfa8f12421c6ccdad
808e281 Unrecognized escapes now raise a SyntaxWarning, not a DeprecationWarn… akuchling Apr 26, 2023 https://github.com/python/cpython/pull/107825/commits/808e281569a4aadf4f04f22f922e1fda5bfd1305
88bbe21 Add paragraph break akuchling May 3, 2023 https://github.com/python/cpython/pull/107825/commits/88bbe21c07867e09db5d9c28d390b368bb31f822
bdf44f2 Remove extra parathesis from an example akuchling May 3, 2023 https://github.com/python/cpython/pull/107825/commits/bdf44f20af2fd75dd0e54418fca75c6801c37dd4
ce864e2 Describe .fullmatch() method akuchling May 3, 2023 https://github.com/python/cpython/pull/107825/commits/ce864e2c0ffa408d67b6495ff3c9a0ad6a164f8f
1eaa7ac Fix bug in doubled-word example, and try to clarify the explanation akuchling May 3, 2023 https://github.com/python/cpython/pull/107825/commits/1eaa7ac6fb44cbb5ab3930e88b24e5ef1a246b35
a4038d8 Clarify discussion of named groups akuchling May 3, 2023 https://github.com/python/cpython/pull/107825/commits/a4038d8cf0f537a8d0bb5433a233532bcdbf7bbd
662e646 Mention := operator akuchling Aug 9, 2023 https://github.com/python/cpython/pull/107825/commits/662e6466d4bb9eeac16ab22eb9d11763279fceea
132b3e6 Describe how to use flags, and embedded modifiers such as (?x) akuchling Aug 10, 2023 https://github.com/python/cpython/pull/107825/commits/132b3e6ad8807f75c55c5a81ae5b9b8e45b4359e
05555df re.sub() now has a flags argument akuchling Aug 10, 2023 https://github.com/python/cpython/pull/107825/commits/05555dff07324ef96ca63e789701d82fcb5599eb
acd1460 Make re.sub() and re.split() signature match the current module akuchling Aug 10, 2023 https://github.com/python/cpython/pull/107825/commits/acd1460e647dcce1cba12ce0ab8be6e6f43017db
f879c88 Move discussion of zero-width assertions, and clarify that repeating … akuchling Aug 10, 2023 https://github.com/python/cpython/pull/107825/commits/f879c88301752f4fce1ff300bf49ddef658a32ba
d9e8ddf Move fullmatch() above match(), and re-word this table a bit akuchling Aug 24, 2023 https://github.com/python/cpython/pull/107825/commits/d9e8ddf0585cac3b9582c6797c8af1c4a8c23094
2db6962 Merge branch 'main' into update-regex-howto akuchling Sep 24, 2024 https://github.com/python/cpython/pull/107825/commits/2db6962e25943416d10e01b0e1f273db7b9c85fb
e370981 Fix some lint-detected markup issues akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/e3709811094447da81a47a46abeb71620686ef9b
e1b084c Remove \b from double-word example akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/e1b084ca3f77c8da0e93847f886bc68166f60e2d
0e855ea Add comments listing future work akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/0e855ea874fc24c900e371013a867aa8d66273e1
7a97af3 Break long line akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/7a97af3f4481caa99e7f85e88d8bc16896cddd3b
961a4ef Use same word in example akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/961a4ef7a3d5edb34de747c94639dead7bc35e25
b0258f6 Update Doc/howto/regex.rst akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/b0258f6e6ecf625daeab0382305213a76537ae1a
bb9497d PEP8 akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/bb9497d2411a1453fbd01a4489606a2f67b8c2dc
23c2934 Typo fix akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/23c2934d23ea99541cc6bb7a00503ce9ad430521
4752488 PEP8 akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/4752488c17f3af132d95aeec4d5a6e881b877dc3
05c04ec PEP8 akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/05c04ec28de482c9599fb59ee112046e414be80a
39b89c3 Merge branch 'update-regex-howto' of github.com:akuchling/cpython int… akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/39b89c366f09f3b4ff42f275a3666141bdd1849f
900c50b Remove somewhat off-topic sentence akuchling Sep 25, 2024 https://github.com/python/cpython/pull/107825/commits/900c50bc25cedc09a8143e4537b5068a4bb14223
Clear filters https://github.com/python/cpython/pull/107825/files
Please reload this pagehttps://github.com/python/cpython/pull/107825/files
Please reload this pagehttps://github.com/python/cpython/pull/107825/files
Doc/howto/regex.rsthttps://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
View file https://github.com/python/cpython/blob/900c50bc25cedc09a8143e4537b5068a4bb14223/Doc/howto/regex.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/107825/{{ revealButtonHref }}
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
Please reload this pagehttps://github.com/python/cpython/pull/107825/files
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
Please reload this pagehttps://github.com/python/cpython/pull/107825/files
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
https://github.com/python/cpython/pull/107825/files#diff-535d16eac93f5c7a0532d0e3aebf6c5aaaef0b0d2addf86ec2de8b0675494aa2
Please reload this pagehttps://github.com/python/cpython/pull/107825/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.