slre icon indicating copy to clipboard operation
slre copied to clipboard

Support numbered repetition notation by {n}, {min,max}

Open vstk opened this issue 8 years ago • 3 comments

Hi, is it implementation of numbered repetition support by {n} and {min,max} notation planned? It's really a basic standard in regular expressions. Thanks.

vstk avatar Mar 14 '16 17:03 vstk

That is not planned at the moment. Could you elaborate on your use case more please?

cpq avatar Mar 15 '16 09:03 cpq

I think this is easy to add, they are just a syntactical sugar over this P{n} is PPP..... n times P{n,} is P{n}P* P{n, m} is P{n}P?P?P?.... ? m-n times P{0,} is P* P{1,} is P+ So, they are not really necessary, because they don't do that kind of black wizardry stuff...

ghost avatar Mar 16 '16 07:03 ghost

I think it's necessary for example: [A-Z]{10} [A-Za-z0-9]{10} low grade: [A-Z][A-Z][A-Z][A-Z][A-Z][A-Z][A-Z][A-Z][A-Z][A-Z] [A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9]

amydomi avatar Jun 12 '19 06:06 amydomi