You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: commands/docs/str_replace.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ usage: |
22
22
23
23
-`--all, -a`: replace all occurrences of the pattern
24
24
-`--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)
26
26
-`--multiline, -m`: multi-line regex mode (implies --regex): ^ and $ match begin/end of line; equivalent to (?m)
0 commit comments