Documentation ¶
Index ¶
- func AutoInstallLinuxDependencies()
- func Escape(re string) string
- func JoinBytes(bytes ...interface{}) []byte
- func Match(str []byte, reg *Regexp) bool
- func MatchRef(str *[]byte, reg *Regexp) bool
- func RepFunc(str []byte, reg *Regexp, rep func(data func(int) []byte) []byte, blank ...bool) []byte
- func RepFuncFirst(str []byte, reg *Regexp, rep func(func(int) []byte) []byte, blank ...bool) []byte
- func RepFuncRef(str *[]byte, reg *Regexp, rep func(data func(int) []byte) []byte, ...) []byte
- func RepStr(str []byte, reg *Regexp, rep []byte) []byte
- func RepStrComplex(str []byte, reg *Regexp, rep []byte) []byte
- func RepStrComplexRef(str *[]byte, reg *Regexp, rep []byte) []byte
- func RepStrComplexRefRes(str *[]byte, reg *Regexp, rep *[]byte) []byte
- func RepStrRef(str *[]byte, reg *Regexp, rep []byte) []byte
- func RepStrRefRes(str *[]byte, reg *Regexp, rep *[]byte) []byte
- func Split(str []byte, reg *Regexp) [][]byte
- func SplitRef(str *[]byte, reg *Regexp) [][]byte
- type Regexp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoInstallLinuxDependencies ¶
func AutoInstallLinuxDependencies()
AutoInstallLinuxDependencies will automatically detect and install dependencies if missing from debian or arch linux debian: libpcre3-dev arch: pcre-dev
func JoinBytes ¶
func JoinBytes(bytes ...interface{}) []byte
JoinBytes is an easy way to join multiple values into a single []byte accepts: []byte, byte, int32, string, [][]byte, int, int64, float64, float32
func MatchRef ¶
MatchRef returns true if a string matches a regex Uses Pointers For Improved Performance
func RepFunc ¶
RepFunc replaces a string with the result of a function similar to JavaScript .replace(/re/, function(data){})
func RepFuncFirst ¶
RepFuncFirst is a copy of the RepFunc method modified to only run once
func RepFuncRef ¶
func RepFuncRef(str *[]byte, reg *Regexp, rep func(data func(int) []byte) []byte, blank ...bool) []byte
RepFuncRef replace a string with the result of a function similar to JavaScript .replace(/re/, function(data){}) Uses Pointers For Improved Performance
func RepStr ¶
RepStr replaces a string with another string note: this function is optimized for performance, and the replacement string does not accept replacements like $1
func RepStrComplex ¶
RepStrComplex is a more complex version of the RepStr method this function will replace things in the result like $1 with your capture groups use $0 to use the full regex capture group use ${123} to use numbers with more than one digit
func RepStrComplexRef ¶
RepStrComplexRef is a more complex version of the RepStrRef method this function will replace things in the result like $1 with your capture groups use $0 to use the full regex capture group use ${123} to use numbers with more than one digit Uses Pointers For Improved Performance
func RepStrComplexRefRes ¶
RepStrComplexRefRes is a more complex version of the RepStrRefRes method this function will replace things in the result like $1 with your capture groups use $0 to use the full regex capture group use ${123} to use numbers with more than one digit Uses Pointers For Improved Performance (also on result)
func RepStrRef ¶
RepStrRef replaces a string with another string note: this function is optimized for performance, and the replacement string does not accept replacements like $1 Uses Pointers For Improved Performance
func RepStrRefRes ¶
RepStrRefRes replaces a string with another string note: this function is optimized for performance, and the replacement string does not accept replacements like $1 Uses Pointers For Improved Performance (also on result)