Skip to content

Fix escape character in regex for Python 3.12+ #22

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jackwillis
Copy link

I get this message when I run the script using Python 3.12 or greater:

/Users/jwillis/Code/onedrive_user_enum/./onedrive_enum.py:649: SyntaxWarning: invalid escape sequence '\/'
  domain_extract = re.findall('<Domain>(.*?)<\/Domain>', r.content.decode('utf-8'))

I adjusted the code to fix the escape characters in that regular expression. The backslash doesn't need to be escaped there.

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