From: Serhiy Storchaka Date: Thu, 20 Jun 2024 21:03:49 +0000 (+0300) Subject: gh-111259: Document idiomatic RE pattern (?s:.) that matches any character (GH-120745) X-Git-Tag: v3.14.0a1~1387 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2f6f7dd26128b834c6e66fe1ceac3ac751143f5;p=thirdparty%2FPython%2Fcpython.git gh-111259: Document idiomatic RE pattern (?s:.) that matches any character (GH-120745) --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index bce36660afca..cc979fe66f7f 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