Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
>>>importre>>>re.fullmatch('(?:ab?c)*','a')>>>re.fullmatch('(?:ab?c)*+','a')<re.Matchobject;span=(0,1),match='a'>>>>
I'm not sure that I completely understand the behavior of the possessive quantifiers, but I think that ifR* doesn't match a string thenR*+ shouldn't match it, whereR is any regex.
Versions tested:
3.12.0b3 (tags/v3.12.0b3:f992a60, Jun 20 2023, 12:25:40) [MSC v.1936 64 bit (AMD64)]3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:30:09) [MSC v.1934 32 bit (Intel)]3.11.4 (main, Jun 14 2023, 18:33:43) [GCC 10.2.1 20210110]Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Done