Lines Matching refs:regexp
9 "regexp"
15 var validID = regexp.MustCompile(`^[a-z]+\[[0-9]+\]$`)
29 matched, err := regexp.MatchString("foo.*", "seafood")
31 matched, err = regexp.MatchString("bar.*", "seafood")
33 matched, err = regexp.MatchString("a(b", "seafood")
38 // false error parsing regexp: missing closing ): `a(b`
42 re := regexp.MustCompile("fo.?")
51 re := regexp.MustCompile("ab?")
60 re := regexp.MustCompile("a(x*)b(y|z)c")
69 re := regexp.MustCompile("a.")
82 re := regexp.MustCompile("a(x*)b")
95 re := regexp.MustCompile("a(x*)b")
113 re := regexp.MustCompile("a(x*)b")
124 re := regexp.MustCompile("a(x*)b")
137 re := regexp.MustCompile("(?P<first>[a-zA-Z]+) (?P<last>[a-zA-Z]+)")