Skip to content

Conversation

@tomasr8
Copy link

@tomasr8 tomasr8 commented Aug 18, 2025

In recent Python versions (3.12+), '\d' emits a SyntaxWarning (e.g. SyntaxWarning: invalid escape sequence '\d')

We can use a raw string to treat the backslash in '\d' as a literal backslash and get rid of the warning.

In recent Python versions, '\d' emits a SyntaxWarning.

Use raw string to treat the backslash in '\d' as a
literal backslash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant