preg_split

preg_split

[code=golang]
a := regexp.MustCompile(`[\s,]+`)
fmt.Println(a.Split("hypertext, language, programming", -1))
[/code]