go: cuelang.org/go/pkg/regexp Index | Files

package regexp

import "cuelang.org/go/pkg/regexp"

Index

Package Files

regexp.go

func Match Uses

func Match(pattern string, s string) (matched bool, err error)

Match reports whether the string s contains any match of the regular expression pattern. More complicated queries need to use Compile and the full Regexp interface.

func QuoteMeta Uses

func QuoteMeta(s string) string

QuoteMeta returns a string that escapes all regular expression metacharacters inside the argument text; the returned string is a regular expression matching the literal text.

Package regexp imports 1 packages (graph). Updated 2019-08-25. Refresh now. Tools for package owners.