slre
slre copied to clipboard
Support numbered repetition notation by {n}, {min,max}
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.
That is not planned at the moment. Could you elaborate on your use case more please?
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...
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]