Go Cheatsheet - RegExp
Regular Expression
We can use go's regexp module for regular expression match.
Quick Match
matched, _ := regexp.MatchString("a[a-z]+e", "apple")
fmt.Println("Matched:", matched) // true
Compile then check match
r := regexp.MustCompile("a([a-z]+)e")
...
hn.0xbf.me1 min read