]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-111259: Document idiomatic RE pattern (?s:.) that matches any character...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 20 Jun 2024 21:22:45 +0000 (23:22 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Jun 2024 21:22:45 +0000 (21:22 +0000)
(cherry picked from commit a2f6f7dd26128b834c6e66fe1ceac3ac751143f5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/re.rst

index bce36660afcada554d9f62bbd0a5921c320ad9bd..cc979fe66f7fe96d758adff3eb317e40a5c3e9e9 100644 (file)
@@ -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