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

Different behaviour from grep/ag with -o and multiple matches #468

Closed
passcod opened this issue Apr 29, 2017 · 1 comment
Closed

Different behaviour from grep/ag with -o and multiple matches #468

passcod opened this issue Apr 29, 2017 · 1 comment
Labels
duplicate An issue that is duplicative of another.

Comments

@passcod
Copy link

passcod commented Apr 29, 2017

With grep:

$ echo '50k + 1k + 11k + 37k + 18k' | grep -Po '[\d.]+'
50
1
11
37
18

With The Silver Searcher:

$ echo '50k + 1k + 11k + 37k + 18k' | ag -o '[\d.]+'
50
1
11
37
18

With ripgrep:

$ echo '50k + 1k + 11k + 37k + 18k' | rg -o '[\d.]+'
50
50
50
50
50
$ rg -V
ripgrep 0.5.1
@BurntSushi
Copy link
Owner

I think this is a dupe of #451, which is fixed on master.

@BurntSushi BurntSushi added the duplicate An issue that is duplicative of another. label Apr 29, 2017
@passcod passcod closed this as completed Apr 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate An issue that is duplicative of another.
Projects
None yet
Development

No branches or pull requests

2 participants