]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-151819: Clarify the conditional-pattern email example in re docs (GH-153072...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 Jul 2026 08:22:55 +0000 (10:22 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2026 08:22:55 +0000 (11:22 +0300)
commitb1faa43d84513e82da3bafd8d0a6e321d90a2d0d
treece977b80fb2a3342ec3e0b922940fb4945cdc6e0
parentbf32ccfe60b0d8eb02e8edd1c4cf980511ef8bb2
[3.14] gh-151819: Clarify the conditional-pattern email example in re docs (GH-153072) (GH-153074)

The example pattern does not fail to match '<user@host.com' outright --
re.search finds 'user@host.com' in it; it only fails to match the
whole string.  Reword to say so.
(cherry picked from commit fe9c7213e6576e27ebff6ef039706cd463593310)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/re.rst