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

Example does not really make sense #41

Open
renaud opened this issue Feb 19, 2024 · 0 comments
Open

Example does not really make sense #41

renaud opened this issue Feb 19, 2024 · 0 comments
Assignees

Comments

@renaud
Copy link

renaud commented Feb 19, 2024

Thanks for this great tutorial!!

<Example regex={/a{2,4}?/g}>

A student of mine remarked that this example does not really make sense:

{2,4}? will always fall back to only matching 2 characters, so it would make more sense to write {2}?

but then again, {2}? does not make sense either, because it will always be {2}

What do you think?

@shreyasminocha shreyasminocha self-assigned this Feb 21, 2024
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

2 participants