firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.24k stars 199 forks source link

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

Open angus-lherrou opened 1 year ago

angus-lherrou commented 1 year ago

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 commented 1 year ago

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

Ayc0 commented 1 year ago

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 commented 1 year ago

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 commented 8 months ago

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

h-vetinari commented 4 months ago

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.