Skip to content

re.compile is compiling a invalid regex #105121

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

Closed
mrwbarg opened this issue May 30, 2023 · 2 comments
Closed

re.compile is compiling a invalid regex #105121

mrwbarg opened this issue May 30, 2023 · 2 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@mrwbarg
Copy link

mrwbarg commented May 30, 2023

Bug report

re.compile is compiling a invalid regex.

Your environment

  • CPython versions tested on: 3.11.3
  • Operating system and architecture: Windows 10 x64

re.compile compiles the following expression: "[0-9]++"
which should be invalid regex.

@mrwbarg mrwbarg added the type-bug An unexpected behavior, bug, or error label May 30, 2023
@lukeroot
Copy link

Possessive quantifiers were added in 3.11 #34627

@terryjreedy
Copy link
Member

See https://docs.python.org/3/library/re.html#regular-expression-syntax. Beginners, especially, should direct questions about syntax to https://discuss.python.org/c/users/7.

@terryjreedy terryjreedy closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants