Split string using regular expression in Go

I’m really new to Go, and have been enjoying it so far. I’m trying to find a good way to split a string using a regular expression instead of a string. Thanks


If you just want to split on certain characters, you can use strings.FieldsFunc, otherwise I'd go with regexp.FindAllString.