https://github.com/python/cpython/commit/730285519ec6afb571409ec7fd3dbdf131bfbdab
commit: 730285519ec6afb571409ec7fd3dbdf131bfbdab
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-06-20T21:22:45Z
summary:

[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 <[email protected]>

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]

Reply via email to