Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of "invalid escape sequence" in regex sequences not prefixed with r on python 3.12 #32

Open
RegentOfOrigin opened this issue Jan 19, 2025 · 0 comments

Comments

@RegentOfOrigin
Copy link

All scripts that contain regexes not prefixed with the r character complain aboutSyntaxWarning: invalid escape sequence XX for all escape sequences. Can be simply resolved by throwing an r in front of the strings (used on some sequences but not all).

Easiest way I found was to do a search for:
re.search
re.sub
compile

And I think that caught all the instances?

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

No branches or pull requests

1 participant