Versions in this module Expand all Collapse all v0 v0.1.0 Nov 11, 2024 Changes in this version type Regexp + func (reg *Regexp) MatchFile(file *os.File, maxReSize ...int64) bool type RegexpRE2 + func (reg *RegexpRE2) MatchFile(file *os.File, maxReSize ...int64) bool v0.0.1 Aug 31, 2024 Changes in this version + func Escape(re string) string + func IsValid(re string) bool + func IsValidPCRE(re string) bool + func IsValidRE2(re string) bool + func JoinBytes(bytes ...interface{}) []byte + type PCRE pcre.Regexp + type RE2 *regexp.Regexp + type Regexp struct + RE pcre.Regexp + func Comp(re string, params ...string) *Regexp + func CompTry(re string, params ...string) (*Regexp, error) + func (reg *Regexp) Match(str []byte) bool + func (reg *Regexp) RepFileFunc(file *os.File, rep func(data func(int) []byte) []byte, all bool, ...) error + func (reg *Regexp) RepFileStr(file *os.File, rep []byte, all bool, maxReSize ...int64) error + func (reg *Regexp) RepFunc(str []byte, rep func(data func(int) []byte) []byte) []byte + func (reg *Regexp) RepStr(str []byte, rep []byte) []byte + func (reg *Regexp) RepStrLit(str []byte, rep []byte) []byte + func (reg *Regexp) Split(str []byte) [][]byte + type RegexpRE2 struct + RE *regexp.Regexp + func CompRE2(re string, params ...string) *RegexpRE2 + func CompTryRE2(re string, params ...string) (*RegexpRE2, error) + func (reg *RegexpRE2) Match(str []byte) bool + func (reg *RegexpRE2) RepFileFunc(file *os.File, rep func(data func(int) []byte) []byte, all bool, ...) error + func (reg *RegexpRE2) RepFileStr(file *os.File, rep []byte, all bool, maxReSize ...int64) error + func (reg *RegexpRE2) RepFunc(str []byte, rep func(data func(int) []byte) []byte, blank ...bool) []byte + func (reg *RegexpRE2) RepStr(str []byte, rep []byte) []byte + func (reg *RegexpRE2) RepStrLit(str []byte, rep []byte) []byte + func (reg *RegexpRE2) Split(str []byte) [][]byte