Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vstk opened this issue Mar 14, 2016 · 3 comments
Open

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

vstk opened this issue Mar 14, 2016 · 3 comments

Comments

@vstk
Copy link

vstk commented Mar 14, 2016

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.

@cpq
Copy link
Member

cpq commented Mar 15, 2016

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

@ghost
Copy link

ghost commented Mar 16, 2016

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...

@amydomi
Copy link

amydomi commented Jun 12, 2019

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants