Versions in this module Expand all Collapse all v0 v0.5.0 Feb 1, 2023 Changes in this version + func RegexpMaxWidth(re *syntax.Regexp) int + type Pattern struct + func NewPattern(expr string, macros map[string]string, vars map[string][]string) (*Pattern, error) + func (p *Pattern) Explain() string + func (p *Pattern) Find(word string, n int) [][]int + func (p *Pattern) Letters() []rune + func (p *Pattern) NegativeLookaroundWidths() (negAWidth int, negBWidth int) + func (p *Pattern) Replace(word string, rpat *RPattern, n int) string + func (p *Pattern) String() string + type RPattern struct + func NewRPattern(expr string, macros map[string]string, vars map[string][]string) *RPattern + func (rp *RPattern) Interpolate(p *Pattern, word string, m []int) (string, error) + func (rp *RPattern) Letters() []rune + func (rp *RPattern) String() string