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

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