package main
import (
"regexp"
"fmt"
)
func main() {
var re = regexp.MustCompile(`(?mi)^\d+.+\d{4}-\d{2}-\d{2},\h+\d{1,2}:\d{1,2}:\d{1,2}\h+(.+)`)
var str = `10 Highlight 2020-11-20, 21:48:47 Lorem ipsum Case 1...
90 Highlight 2020-11-20, 21:35:17 Lorem ipsum Case 2...
2 Highlight John Smith 2020-11-20, 17:19:26 Lorem ipsum Case 3...`
var substitution = "\1"
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/