]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-111259: Document idiomatic RE pattern (?s:.) that matches any character (GH-120745)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 20 Jun 2024 21:03:49 +0000 (00:03 +0300)
committerGitHub <noreply@github.com>
Thu, 20 Jun 2024 21:03:49 +0000 (00:03 +0300)
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