Skip to content

Commit 9dca7a5

Browse files
gh-120742: Document idiomatic RE pattern (?s:.) that matches any character
1 parent e8752d7 commit 9dca7a5

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)