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

Add Python 3.11's implementation of atomic groups and possessive quantifiers #1930

Open
angus-lherrou opened this issue Oct 22, 2022 · 5 comments

Comments

@angus-lherrou
Copy link

Feature

Per python/cpython#31982, atomic groups and possessive quantifiers will be available in the re module in Python 3.11, which releases on Monday, October 24. I'm not sure how Regex101 handles version-specific features of regex styles, but I think it would be good to include this, either now or at some point when Python 3.11 is considered mature or dominant enough.

@liudongmiao
Copy link

Just said, Python 3.11 was released on 2022/10/24.

@Ayc0
Copy link

Ayc0 commented Mar 20, 2023

Should it be written in the description of the feature that this is only available in 3.11?
Or should we always consider that python = latest?

@JensHeinrich
Copy link

Should it be written in the description of the feature that this is only available in 3.11? Or should we always consider that python = latest?

I think Python (<3.10) and Python (>=3.11) would seem sensible like with PCRE and PCRE2

@rootsmusic
Copy link

@JensHeinrich Issue #1219 proposes Python (<3.7) and Python (>=3.7).

@h-vetinari
Copy link

I think a split in <3.10 and >=3.11 would be reasonable, but if that's too much effort, then using the latest released python seems like the next best thing. In any case, it should become possible to use the new possessive qualifiers and other current regex features present in python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants