firasdib / Regex101

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

Wrong description for possesive `{1,1}+` #2184

Closed User4martin closed 6 months ago

User4martin commented 7 months ago

Bug Description

(.*){1,1}+b reports

{1,1}+ matches the previous token exactly one time (meaningless quantifier)

"meaningless quantifier" is not correct. It turns the previous token (group) into a possessive group.

Add/Remove the + will make the expression match or not match.

{1,1} without the + is indeed meaningless.

Reproduction steps

https://regex101.com/r/bpGBxG/1

Expected Outcome

Remove the "meaningless quantifier". Add info that the group becomes possessive.

firasdib commented 6 months ago

Thank you, I'll fix this description.