Skip to content

Commit e5b9f2f

Browse files
authored
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
1 parent 8c9aaaa commit e5b9f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/docs/str_replace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ usage: |
2222

2323
- `--all, -a`: replace all occurrences of the pattern
2424
- `--no-expand, -n`: do not expand capture groups (like $name) in the replacement string
25-
- `--regex, -r`: match the pattern as a regular expression in the input, instead of a substring
25+
- `--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)
2626
- `--multiline, -m`: multi-line regex mode (implies --regex): ^ and $ match begin/end of line; equivalent to (?m)
2727

2828
## Parameters

0 commit comments

Comments
 (0)