BeRo1985 / flre

FLRE - Fast Light Regular Expressions - A fast light regular expression library
GNU Lesser General Public License v2.1
94 stars 23 forks source link

x+x+ is xx+ not x+ #77

Closed benibela closed 1 year ago

benibela commented 3 years ago

x+x+ is xx+ not x+

Does not always remove all +.

E.g. ^(?:\d+\d+\p{Nd}\d+)$ becomes ((?:(?-m:^))[0-9][0-9]+[0-9][0-9]+(?:(?-m:$))), and ^(?:\d+\d+\d+\d+\d+)$ becomes ((?:(?-m:^))[0-9][0-9][0-9]+[0-9][0-9]+(?:(?-m:$)))

benibela commented 3 years ago

fixes #69