Skip to content

Commit 7302855

Browse files
[3.13] gh-111259: Document idiomatic RE pattern (?s:.) that matches any character (GH-120745) (GH-120813)
(cherry picked from commit a2f6f7d) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 3cb6c4c commit 7302855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/re.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The special characters are:
101101
``.``
102102
(Dot.) In the default mode, this matches any character except a newline. If
103103
the :const:`DOTALL` flag has been specified, this matches any character
104-
including a newline.
104+
including a newline. ``(?s:.)`` matches any character regardless of flags.
105105

106106
.. index:: single: ^ (caret); in regular expressions
107107

0 commit comments

Comments
 (0)