Skip to content

Commit a2f6f7d

Browse files
gh-111259: Document idiomatic RE pattern (?s:.) that matches any character (GH-120745)
1 parent 56657f6 commit a2f6f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/re.rst

+1-1
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)