Versions in this module Expand all Collapse all v0 v0.1.0 Jun 1, 2026 Changes in this version + const DefaultBacktrackLimit + var ErrBacktrackLimit = errors.New("rexa: backtrack limit exceeded") + func Match(pattern string, b []byte) (bool, error) + func MatchReader(pattern string, r io.RuneReader) (bool, error) + func MatchString(pattern string, s string) (bool, error) + func QuoteMeta(s string) string + type CompileOptions struct + BacktrackLimit int64 + CacheCapacity int + Flags syntax.Flags + type Regexp struct + func Compile(expr string) (*Regexp, error) + func CompileWithOptions(expr string, opts CompileOptions) (*Regexp, error) + func MustCompile(expr string) *Regexp + func MustCompileWithOptions(expr string, opts CompileOptions) *Regexp + func (re *Regexp) Copy() *Regexp + func (re *Regexp) EngineUsed() string + func (re *Regexp) Expand(dst []byte, template []byte, src []byte, match []int) []byte + func (re *Regexp) ExpandString(dst []byte, template string, src string, match []int) []byte + func (re *Regexp) Find(b []byte) []byte + func (re *Regexp) FindAll(b []byte, n int) [][]byte + func (re *Regexp) FindAllIndex(b []byte, n int) [][]int + func (re *Regexp) FindAllString(s string, n int) []string + func (re *Regexp) FindAllStringIndex(s string, n int) [][]int + func (re *Regexp) FindAllStringSubmatch(s string, n int) [][]string + func (re *Regexp) FindAllStringSubmatchIndex(s string, n int) [][]int + func (re *Regexp) FindAllSubmatch(b []byte, n int) [][][]byte + func (re *Regexp) FindAllSubmatchIndex(b []byte, n int) [][]int + func (re *Regexp) FindIndex(b []byte) []int + func (re *Regexp) FindReaderIndex(r io.RuneReader) []int + func (re *Regexp) FindReaderSubmatchIndex(r io.RuneReader) []int + func (re *Regexp) FindString(s string) string + func (re *Regexp) FindStringIndex(s string) []int + func (re *Regexp) FindStringSubmatch(s string) []string + func (re *Regexp) FindStringSubmatchIndex(s string) []int + func (re *Regexp) FindSubmatch(b []byte) [][]byte + func (re *Regexp) FindSubmatchIndex(b []byte) []int + func (re *Regexp) LiteralPrefix() (prefix string, complete bool) + func (re *Regexp) Longest() + func (re *Regexp) MarshalText() ([]byte, error) + func (re *Regexp) Match(b []byte) bool + func (re *Regexp) MatchReader(r io.RuneReader) bool + func (re *Regexp) MatchString(s string) bool + func (re *Regexp) NumSubexp() int + func (re *Regexp) ReplaceAll(src, repl []byte) []byte + func (re *Regexp) ReplaceAllFunc(src []byte, repl func([]byte) []byte) []byte + func (re *Regexp) ReplaceAllLiteral(src, repl []byte) []byte + func (re *Regexp) ReplaceAllLiteralString(src, repl string) string + func (re *Regexp) ReplaceAllString(src, repl string) string + func (re *Regexp) ReplaceAllStringFunc(src string, repl func(string) string) string + func (re *Regexp) Split(s string, n int) []string + func (re *Regexp) String() string + func (re *Regexp) SubexpIndex(name string) int + func (re *Regexp) SubexpNames() []string + func (re *Regexp) UnmarshalText(text []byte) error