Skip to content

Commit

Permalink
pythongh-111259: Document idiomatic RE pattern (?s:.) that matches an…
Browse files Browse the repository at this point in the history
…y character
  • Loading branch information
serhiy-storchaka committed Jun 19, 2024
1 parent e8752d7 commit d3a4ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/re.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d3a4ca6

Please sign in to comment.