From e5b9f2f0585b1fad05abe319bf67dbd42fc79297 Mon Sep 17 00:00:00 2001 From: "Tristan P." <65556393+quadristan@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:34:47 +0200 Subject: [PATCH] str_replace: add link to rust doc Trying to escape a capture group names, I had to discover rust doc. Adding a link to it will bring knowledge :+1: Knowledge! :thinking: Should we copy rust doc here in order to not be coupled with it? I have the feeling nushell<>rust coupling is intentional, this is why I am opening the PR this way --- commands/docs/str_replace.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/docs/str_replace.md b/commands/docs/str_replace.md index 3a54a68f5bf..c0cea03b82b 100644 --- a/commands/docs/str_replace.md +++ b/commands/docs/str_replace.md @@ -22,7 +22,7 @@ usage: | - `--all, -a`: replace all occurrences of the pattern - `--no-expand, -n`: do not expand capture groups (like $name) in the replacement string - - `--regex, -r`: match the pattern as a regular expression in the input, instead of a substring + - `--regex, -r`: match the pattern as a regular expression in the input, instead of a substring, following [rust specification](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace) - `--multiline, -m`: multi-line regex mode (implies --regex): ^ and $ match begin/end of line; equivalent to (?m) ## Parameters