package main
import (
"regexp"
"fmt"
)
func main() {
var re = regexp.MustCompile(`(?i)(\b|[#])ИС-5 B\/1 D\.06' \(Объект 730\)(?=\b|[^-])`)
var str = `ИС-5 B/1 D.06' (Объект 730)
ИС-5 B/1 Dd06' (Объект 730)
ИС-5 B/1 D!06' (Объект 730)
ИС-5 B/1 D_06' (Объект 730)
#ИС-5 B/1 D.06' (Объект 730)
ИС-5 B/1 D(06' (Объект 730)
ИС-5 B/1 D"06' (Объект 730)`
var substitution = "#ИС_5_Объект_730"
fmt.Println(re.ReplaceAllString(str, substitution))
}
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Golang, please visit: https://golang.org/pkg/regexp/