-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Repeated group does not match #1537
Comments
Thanks for the great bug report! Should be fixed on master. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of ripgrep are you using?
How did you install ripgrep?
Via Homebrew.
What operating system are you using ripgrep on?
macOS 10.14.5.
Describe your question, feature request, or bug.
Ripgrep does not match the string
abc;de,fg
with the regex;(.*,){1}
.If this is a bug, what are the steps to reproduce the behavior?
This returns no lines:
If I remove the
{1}
repetition on the group, I do get a match:I also get a match with PCRE:
If this is a bug, what is the expected behavior?
I expect the first example to return a match.
I know this is almost certainly due to my misunderstanding Ripgrep's regex syntax, but I've been racking my brain and I can't figure out what I'm doing wrong.
The text was updated successfully, but these errors were encountered: