Skip to content

Commit

Permalink
Doc: Include "Python's" to a link text in RE module
Browse files Browse the repository at this point in the history
  • Loading branch information
adorilson committed Oct 28, 2024
1 parent 337e4b4 commit 0e0e082
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 @@ -33,7 +33,7 @@ usage of the backslash in string literals now generate a :exc:`SyntaxWarning`
and in the future this will become a :exc:`SyntaxError`. This behaviour
will happen even if it is a valid escape sequence for a regular expression.

The solution is to use Python's :ref:`raw string notation
The solution is to use :ref:`Python's raw string notation
for regular expression patterns <raw-string-notation>`; backslashes are not
handled in any special way in a string literal
prefixed with ``'r'``. So ``r"\n"`` is a two-character string containing
Expand Down

0 comments on commit 0e0e082

Please sign in to comment.