diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-20 21:22:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 21:22:45 (GMT) |
commit | 730285519ec6afb571409ec7fd3dbdf131bfbdab (patch) | |
tree | cc5dcaf6e91e31f56394120f3567c096b78036a1 | |
parent | 3cb6c4cd60bec1acbcd960f5e7bd65f78152dbdd (diff) | |
download | cpython-730285519ec6afb571409ec7fd3dbdf131bfbdab.zip cpython-730285519ec6afb571409ec7fd3dbdf131bfbdab.tar.gz cpython-730285519ec6afb571409ec7fd3dbdf131bfbdab.tar.bz2 |
[3.13] gh-111259: Document idiomatic RE pattern (?s:.) that matches any character (GH-120745) (GH-120813)
(cherry picked from commit a2f6f7dd26128b834c6e66fe1ceac3ac751143f5)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
-rw-r--r-- | Doc/library/re.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index bce3666..cc979fe 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -101,7 +101,7 @@ The special characters are: ``.`` (Dot.) In the default mode, this matches any character except a newline. If the :const:`DOTALL` flag has been specified, this matches any character - including a newline. + including a newline. ``(?s:.)`` matches any character regardless of flags. .. index:: single: ^ (caret); in regular expressions |