summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-06-20 21:03:49 (GMT)
committerGitHub <noreply@github.com>2024-06-20 21:03:49 (GMT)
commita2f6f7dd26128b834c6e66fe1ceac3ac751143f5 (patch)
treed9a84ad0a0067b322375eac84e3b20d2d8bdcfbf
parent56657f6be26c11e4b7045515fd3bd15bbda3c338 (diff)
downloadcpython-a2f6f7dd26128b834c6e66fe1ceac3ac751143f5.zip
cpython-a2f6f7dd26128b834c6e66fe1ceac3ac751143f5.tar.gz
cpython-a2f6f7dd26128b834c6e66fe1ceac3ac751143f5.tar.bz2
gh-111259: Document idiomatic RE pattern (?s:.) that matches any character (GH-120745)
-rw-r--r--Doc/library/re.rst2
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