We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When searching in oneline text (e.g. minified json) with option --only-matching, I got the result only first match.
--only-matching
$ rg --version ripgrep 0.5.1 $ cat ./test.json [{"character":"a","code":"U+0061"},{"character":"b","code":"U+0062"},{"character":"c","code":"U+0063"},{"character":"d","code":"U+0064"},{"character":"e","code":"U+0065"},{"character":"f","code":"U+0066"},{"character":"g","code":"U+0067"}] $ rg '"character":"[\w]"' ./test.json 1:[{"character":"a","code":"U+0061"},{"character":"b","code":"U+0062"},{"character":"c","code":"U+0063"},{"character":"d","code":"U+0064"},{"character":"e","code":"U+0065"},{"character":"f","code":"U+0066"},{"character":"g","code":"U+0067"}] $ rg '"character":"[\w]"' -o ./test.json 1:"character":"a" 1:"character":"a" 1:"character":"a" 1:"character":"a" 1:"character":"a" 1:"character":"a" 1:"character":"a"
The text was updated successfully, but these errors were encountered:
I think this is a dupe of #451 is fixed on master.
Sorry, something went wrong.
Already fixed
~/ripgrep$ git rev-parse HEAD 362abed44a000da3b31e5dd027e16eb4e36e1bed ~/ripgrep$ cargo run -- '"character":"[\w]"' -o ./tests/test.json Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs Running `target/debug/rg '"character":"[\w]"' -o ./tests/test.json` 1:"character":"a" 1:"character":"b" 1:"character":"c" 1:"character":"d" 1:"character":"e" 1:"character":"f" 1:"character":"g"
No branches or pull requests
When searching in oneline text (e.g. minified json) with option
--only-matching
, I got the result only first match.The text was updated successfully, but these errors were encountered: