Skip to content

Commit

Permalink
[3.12] gh-111259: Document idiomatic RE pattern (?s:.) that matches a…
Browse files Browse the repository at this point in the history
…ny character (GH-120745) (GH-120814)

(cherry picked from commit a2f6f7d)

Co-authored-by: Serhiy Storchaka <[email protected]>
  • Loading branch information
miss-islington and serhiy-storchaka authored Jun 20, 2024
1 parent 0c6d6ab commit e58bece
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 e58bece

Please sign in to comment.