MCPcopy Index your code
hub / github.com/Masterminds/sprig / regexSplit

Function regexSplit

regex.go:68–71  ·  view source on GitHub ↗
(regex string, s string, n int)

Source from the content-addressed store, hash-verified

66}
67
68func regexSplit(regex string, s string, n int) []string {
69 r := regexp.MustCompile(regex)
70 return r.Split(s, n)
71}
72
73func mustRegexSplit(regex string, s string, n int) ([]string, error) {
74 r, err := regexp.Compile(regex)

Callers 1

TestRegexSplitFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestRegexSplitFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…