Versions in this module Expand all Collapse all v0 v0.1.1 Dec 10, 2019 v0.1.0 Dec 10, 2019 Changes in this version + func Match(text, expr string) (captures []string) + func MatchAll(text, expr string, limit int) (captures [][]string) + func MatchIndex(text, expr string) (captures []int) + func MatchIndexAll(text, expr string, limit int) (captures [][]int) + func Replace(text, expr string, repl Replacer) (string, int) + func ReplaceAll(text, expr string, repl Replacer, limit int) (string, int) + type Pattern struct + func Compile(expr string) (*Pattern, error) + func MustCompile(expr string) *Pattern + func (patt Pattern) Match(src string) (captures []string) + func (patt Pattern) MatchAll(src string, limit int) (captures [][]string) + func (patt Pattern) MatchIndex(src string) (captures []int) + func (patt Pattern) MatchIndexAll(src string, limit int) (captures [][]int) + func (patt Pattern) Replace(text string, repl Replacer) (string, int) + func (patt Pattern) ReplaceAll(text string, repl Replacer, limit int) (string, int) + type Replacer interface + Replace func(string) string