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

"non-greedy" repetition are not supported in regular expressions #209

Open
BookOwl opened this issue Mar 29, 2017 · 1 comment · May be fixed by #439
Open

"non-greedy" repetition are not supported in regular expressions #209

BookOwl opened this issue Mar 29, 2017 · 1 comment · May be fixed by #439
Labels

Comments

@BookOwl
Copy link

BookOwl commented Mar 29, 2017

Why aren't they?

@nikomatsakis
Copy link
Collaborator

@BookOwl good question! I'm not sure what it would take to make them work. Particularly now that we use the regex engine to generate our code, it probably doesn't take much. We generate the NFA/DFA primarily to check for the potential of overlap, and I guess "greedy or not" doesn't really factor in there.

@liaden liaden linked a pull request Jan 17, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants