mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 01:30:21 -07:00
parent
3eccb7c363
commit
3b66f37a31
@ -22,6 +22,8 @@ Bug fixes:
|
|||||||
Fix bug when using `-w` with a regex that can match the empty string.
|
Fix bug when using `-w` with a regex that can match the empty string.
|
||||||
* [BUG #1911](https://github.com/BurntSushi/ripgrep/issues/1911):
|
* [BUG #1911](https://github.com/BurntSushi/ripgrep/issues/1911):
|
||||||
Disable mmap searching in all non-64-bit environments.
|
Disable mmap searching in all non-64-bit environments.
|
||||||
|
* [BUG #2108](https://github.com/BurntSushi/ripgrep/issues/2108):
|
||||||
|
Improve docs for `-r/--replace` syntax.
|
||||||
* [BUG #2198](https://github.com/BurntSushi/ripgrep/issues/2198):
|
* [BUG #2198](https://github.com/BurntSushi/ripgrep/issues/2198):
|
||||||
Fix bug where `--no-ignore-dot` would not ignore `.rgignore`.
|
Fix bug where `--no-ignore-dot` would not ignore `.rgignore`.
|
||||||
* [BUG #2288](https://github.com/BurntSushi/ripgrep/issues/2288):
|
* [BUG #2288](https://github.com/BurntSushi/ripgrep/issues/2288):
|
||||||
@ -33,6 +35,7 @@ Bug fixes:
|
|||||||
* [BUG #2523](https://github.com/BurntSushi/ripgrep/issues/2523):
|
* [BUG #2523](https://github.com/BurntSushi/ripgrep/issues/2523):
|
||||||
Make executable searching take `.com` into account on Windows.
|
Make executable searching take `.com` into account on Windows.
|
||||||
|
|
||||||
|
|
||||||
13.0.0 (2021-06-12)
|
13.0.0 (2021-06-12)
|
||||||
===================
|
===================
|
||||||
ripgrep 13 is a new major version release of ripgrep that primarily contains
|
ripgrep 13 is a new major version release of ripgrep that primarily contains
|
||||||
|
@ -2646,6 +2646,17 @@ replacement string. Capture group indices are numbered based on the position of
|
|||||||
the opening parenthesis of the group, where the leftmost such group is $1. The
|
the opening parenthesis of the group, where the leftmost such group is $1. The
|
||||||
special $0 group corresponds to the entire match.
|
special $0 group corresponds to the entire match.
|
||||||
|
|
||||||
|
The name of a group is formed by taking the longest string of letters, numbers
|
||||||
|
and underscores (i.e. [_0-9A-Za-z]) after the $. For example, $1a will be
|
||||||
|
replaced with the group named '1a', not the group at index 1. If the group's
|
||||||
|
name contains characters that aren't letters, numbers or underscores, or you
|
||||||
|
want to immediately follow the group with another string, the name should be
|
||||||
|
put inside braces. For example, ${1}a will take the content of the group at
|
||||||
|
index 1 and append 'a' to the end of it.
|
||||||
|
|
||||||
|
If an index or name does not refer to a valid capture group, it will be
|
||||||
|
replaced with an empty string.
|
||||||
|
|
||||||
In shells such as Bash and zsh, you should wrap the pattern in single quotes
|
In shells such as Bash and zsh, you should wrap the pattern in single quotes
|
||||||
instead of double quotes. Otherwise, capture group indices will be replaced by
|
instead of double quotes. Otherwise, capture group indices will be replaced by
|
||||||
expanded shell variables which will most likely be empty.
|
expanded shell variables which will most likely be empty.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user