Regex101 icon indicating copy to clipboard operation
Regex101 copied to clipboard

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

Open angus-lherrou opened this issue 2 years ago • 5 comments

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.

angus-lherrou avatar Oct 22 '22 00:10 angus-lherrou

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

liudongmiao avatar Nov 18 '22 02:11 liudongmiao

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?

Ayc0 avatar Mar 20 '23 20:03 Ayc0

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

JensHeinrich avatar Mar 21 '23 15:03 JensHeinrich

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

rootsmusic avatar Dec 12 '23 23:12 rootsmusic

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.

h-vetinari avatar Apr 11 '24 05:04 h-vetinari