go package学习——regexp
package regexp实现了正则表达式的搜索。 Index func Match(pattern string, b []byte) (matched bool, err error) func MatchReader(pattern string, r io.RuneReader) (matched bool, err error) func MatchString(pattern string, s string) (matched bool, err error) func QuoteMeta(s string) string type Regexp func Compile(expr string) (*Regexp, error) func CompilePOSIX(expr string) (*Regexp, error) func MustCompile(str string) *Regexp func MustCompilePOSIX(str string) *Regexp func (re *Regexp) Expand(dst []byte, template []byte, src []byte, match []int) []byte func (re *Regexp) ExpandString(dst []byte, template string,