https://github.com/python/cpython/commit/a2f6f7dd26128b834c6e66fe1ceac3ac751143f5
commit: a2f6f7dd26128b834c6e66fe1ceac3ac751143f5
branch: main
author: Serhiy Storchaka <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-06-21T00:03:49+03:00
summary:
gh-111259: Document idiomatic RE pattern (?s:.) that matches any character
(GH-120745)
files:
M Doc/library/re.rst
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index bce36660afcada..cc979fe66f7fe9 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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]