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 (pythonGH-120745)
  • Loading branch information
serhiy-storchaka authored Jun 20, 2024
1 parent 56657f6 commit a2f6f7d
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 a2f6f7d

Please sign in to comment.