]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:38 +0000 (10:22 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2026 08:22:38 +0000 (11:22 +0300)
commit4b5e9d817a834f9d3270b998f64ebf57faa78166
treedd1436ab643b5c4287a958aff41ba2e3e89b7ec4
parentb8885ecccb50c193d02e1174e515bdb35bdb261a
[3.13] gh-151819: Clarify the conditional-pattern email example in re docs (GH-153072) (GH-153075)

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