From d3a4ca6a8e2a6cbc616d82d2adec48b3dfe84db5 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 19 Jun 2024 17:01:15 +0300 Subject: [PATCH] gh-111259: Document idiomatic RE pattern (?s:.) that matches any character --- Doc/library/re.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 39788de76b558b..e748d59b33afe1 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