We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f3568 commit 09a0158Copy full SHA for 09a0158
script.go
@@ -731,8 +731,8 @@ func (p *Pipe) Replace(search, replace string) *Pipe {
731
}
732
733
// ReplaceRegexp replaces all matches of the compiled regexp re with the string
734
-// re. $x variables in the replace string are interpreted as by
735
-// [regexp.Expand]; for example, $1 represents the text of the first submatch.
+// replace. $x variables in the replace string are interpreted as by
+// [regexp#Regexp.Expand]; for example, $1 represents the text of the first submatch.
736
func (p *Pipe) ReplaceRegexp(re *regexp.Regexp, replace string) *Pipe {
737
return p.FilterLine(func(line string) string {
738
return re.ReplaceAllString(line, replace)
0 commit comments