Documentation
¶
Index ¶
- func Compile(pattern string) (*regexp.Regexp, error)
- func FindAllMatchString(pattern string, src string) ([][]string, error)
- func FindMatchString(pattern string, src string) ([]string, error)
- func IsMatch(pattern string, src []byte) bool
- func IsMatchString(pattern string, src string) bool
- func Replace(pattern string, src []byte, replace []byte) ([]byte, error)
- func ReplaceString(pattern, src string, replace string) (string, error)
- func Validate(pattern string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAllMatchString ¶
FindAllMatchString 正则匹配,并返回所有匹配的列表
func FindMatchString ¶
FindMatchString 正则匹配,并返回匹配的列表
func ReplaceString ¶
ReplaceString 正则替换(全部替换),字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.