doc: clarify capture group indices

And in particular, note the special $0 index, which corresponds to the
entire match.

Fixes #1591
This commit is contained in:
Andrew Gallant
2020-05-21 22:22:51 -04:00
parent b72ad8f8aa
commit a700b75843
2 changed files with 9 additions and 4 deletions

View File

@@ -6,6 +6,8 @@ Bug fixes:
* [BUG #1581](https://github.com/BurntSushi/ripgrep/issues/1581):
Corrects some egregious markup output in `--help`.
* [BUG #1591](https://github.com/BurntSushi/ripgrep/issues/1591):
Mention the special `$0` capture group in docs for the `-r/--replace` flag.
12.1.0 (2020-05-09)