gocuelang.org/go/pkg/regexp Index | Files

package regexp

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

Index

Functions

func Match

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

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.

Source Files

regexp.go

Version
v0.0.4
Published
Jul 9, 2019
Platform
linux/amd64
Imports
1 packages
Last checked
21 seconds ago

Tools for package owners.