package main
import (
"fmt"
"regexp"
)
func main() {
s := "go php PHP GO Python go GO"
regexp__ := regexp.MustCompile("^(.*?)GO(.*)$")
replace := "${1}c++$2"
s = regexp__.ReplaceAllString(s, replace)
fmt.Println(s)
}
/*
run:
go php PHP c++ Python go GO
*/