gitlab.com/evatix-go/core@v1.3.55/coredata/stringslice/RegexTrimmedSplitNonEmptyAll.go (about) 1 package stringslice 2 3 import ( 4 "regexp" 5 6 "gitlab.com/evatix-go/core/constants" 7 ) 8 9 func RegexTrimmedSplitNonEmptyAll( 10 regexp *regexp.Regexp, 11 content string, 12 ) []string { 13 items := regexp.Split( 14 content, 15 constants.TakeAllMinusOne) 16 17 if len(items) == 0 { 18 return []string{} 19 } 20 21 return NonWhitespaceTrimSlice(items) 22 }