regexp.Regexp.MatchString (method)
90 uses
regexp (current package)
regexp.go#L524: func (re *Regexp) MatchString(s string) bool {
regexp.go#L553: return re.MatchString(s), nil
cloud.google.com/go/profiler
profiler.go#L544: if !serviceRegexp.MatchString(config.Service) {
github.com/andybalholm/cascadia
selector.go#L347: return rx.MatchString(s)
selector.go#L453: return s.regexp.MatchString(text)
github.com/aws/aws-sdk-go/aws/endpoints
endpoints.go#L215: if !schemeRE.MatchString(endpoint) {
endpoints.go#L271: if _, ok := p.p.Regions[regionID]; ok || p.p.RegionRegex.MatchString(regionID) {
v3model.go#L77: return p.RegionRegex.MatchString(region)
v3model.go#L350: return regionValidationRegex.MatchString(region)
github.com/evanw/esbuild/internal/config
config.go#L398: return (namespace == "" || path.Namespace == namespace) && filter.MatchString(path.Text)
github.com/evanw/esbuild/internal/resolver
resolver.go#L352: if re.MatchString(path.Text) {
github.com/go-git/go-git/v5
repository.go#L1496: if !negate && re.MatchString(hc.Message) {
repository.go#L1501: if negate && !re.MatchString(hc.Message) {
worktree.go#L837: if pathSpec != nil && pathSpec.MatchString(file.Name) {
worktree.go#L879: if pattern != nil && pattern.MatchString(cnt) {
github.com/go-git/go-git/v5/config
modules.go#L105: if dotdotPath.MatchString(m.Path) {
github.com/go-git/go-git/v5/internal/url
url.go#L15: return isSchemeRegExp.MatchString(url)
url.go#L21: return scpLikeUrlRegExp.MatchString(url)
github.com/google/go-cmp/cmp
options.go#L282: if !identsRx.MatchString(name) {
options.go#L285: } else if !identsRx.MatchString(name) {
github.com/google/pprof/profile
filter.go#L119: if m := loc.Mapping; m != nil && showFrom.MatchString(m.File) {
filter.go#L134: if re.MatchString(fn.Name) || re.MatchString(fn.Filename) {
filter.go#L146: matchShow := show == nil || show.MatchString(name)
filter.go#L147: matchHide := hide != nil && hide.MatchString(name)
filter.go#L178: if re.MatchString(fn.Name) || re.MatchString(fn.Filename) {
filter.go#L183: if m := loc.Mapping; m != nil && re.MatchString(m.File) {
filter.go#L192: if m := loc.Mapping; m != nil && re.MatchString(m.File) {
filter.go#L198: if re.MatchString(fn.Name) || re.MatchString(fn.Filename) {
filter.go#L210: if m := loc.Mapping; m != nil && re.MatchString(m.File) {
filter.go#L216: if !re.MatchString(fn.Name) && !re.MatchString(fn.Filename) {
prune.go#L70: if dropRx.MatchString(funcName) {
prune.go#L71: if keepRx == nil || !keepRx.MatchString(funcName) {
prune.go#L158: if dropRx.MatchString(funcName) {
github.com/google/safehtml
identifier.go#L56: if !startsWithAlphabetPattern.MatchString(string(value)) ||
identifier.go#L57: !onlyAlphanumericsOrHyphenPattern.MatchString(string(value)) {
identifier.go#L70: if !startsWithAlphabetPattern.MatchString(string(prefix)) ||
identifier.go#L71: !onlyAlphanumericsOrHyphenPattern.MatchString(string(prefix)) {
identifier.go#L74: if !onlyAlphanumericsOrHyphenPattern.MatchString(value) {
script.go#L68: if !jsIdentifierPattern.MatchString(string(name)) {
style.go#L186: if identifierPattern.MatchString(name) {
style.go#L270: if !pattern.MatchString(value) {
url.go#L117: if safeURLPattern.MatchString(url) {
url.go#L121: return len(submatches) == 2 && safeMIMETypePattern.MatchString(submatches[1])
github.com/google/safehtml/internal/safehtmlutil
safehtmlutil.go#L34: return safeTrustedResourceURLPrefixPattern.MatchString(prefix)
safehtmlutil.go#L46: return urlDoubleDotSegmentPattern.MatchString(url)
github.com/google/safehtml/template
sanitize.go#L159: if dataAttributeNamePattern.MatchString(attr) {
sanitize.go#L194: if endsWithCharRefPrefixPattern.MatchString(prefix) {
url.go#L47: case startsWithFullySpecifiedSchemePattern.MatchString(decoded):
url.go#L96: if containsWhitespaceOrControlPattern.MatchString(prefix) {
url.go#L105: if containsWhitespaceOrControlPattern.MatchString(decoded) {
url.go#L108: if endsWithPercentEncodingPrefixPattern.MatchString(decoded) {
github.com/kevinburke/ssh_config
config.go#L390: if h.Patterns[i].regex.MatchString(alias) {
github.com/microcosm-cc/bluemonday
sanitize.go#L279: if ap.regexp.MatchString(htmlAttr.Val) {
sanitize.go#L293: if ap.regexp.MatchString(htmlAttr.Val) {
sanitize.go#L565: if !dataAttribute.MatchString(val) {
sanitize.go#L573: if dataAttributeXMLPrefix.MatchString(rest[1]) {
sanitize.go#L577: if dataAttributeInvalidChars.MatchString(rest[1]) {
github.com/prometheus/procfs
proc_fdinfo.go#L59: if rPos.MatchString(text) {
proc_fdinfo.go#L61: } else if rFlags.MatchString(text) {
proc_fdinfo.go#L63: } else if rMntID.MatchString(text) {
proc_fdinfo.go#L65: } else if rInotify.MatchString(text) {
github.com/sergi/go-diff/diffmatchpatch
diff.go#L785: nonAlphaNumeric1 := nonAlphaNumericRegex.MatchString(char1)
diff.go#L786: nonAlphaNumeric2 := nonAlphaNumericRegex.MatchString(char2)
diff.go#L787: whitespace1 := nonAlphaNumeric1 && whitespaceRegex.MatchString(char1)
diff.go#L788: whitespace2 := nonAlphaNumeric2 && whitespaceRegex.MatchString(char2)
diff.go#L789: lineBreak1 := whitespace1 && linebreakRegex.MatchString(char1)
diff.go#L790: lineBreak2 := whitespace2 && linebreakRegex.MatchString(char2)
diff.go#L791: blankLine1 := lineBreak1 && blanklineEndRegex.MatchString(one)
diff.go#L792: blankLine2 := lineBreak2 && blanklineEndRegex.MatchString(two)
patch.go#L492: if !patchHeader.MatchString(text[textPointer]) {
go.opencensus.io/trace/tracestate
tracestate.go#L89: return keyValidationRegExp.MatchString(entry.Key) &&
tracestate.go#L90: valueValidationRegExp.MatchString(entry.Value)
golang.org/x/mod/internal/lazyregexp
lazyre.go#L59: return r.re().MatchString(s)
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L247: if exampleOutputRx.MatchString(lit) {
linkify.go#L588: if badIDRx.MatchString(s) {
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L534: if last == nil || !outputPrefix.MatchString(last.Text()) {
reader.go#L485: if noteCommentRx.MatchString(c.Text) {
reader.go#L872: return deprecatedRx.MatchString(s)
golang.org/x/pkgsite/internal/source
source.go#L470: if ltm.fileRegexp.MatchString(sm.fileTemplate) {
golang.org/x/pkgsite/internal/testing/htmlcheck
htmlcheck.go#L131: if !re.MatchString(text) {
htmlcheck.go#L179: if !re.MatchString(a.Val) {
golang.org/x/pkgsite/internal/version
version.go#L41: return strings.Count(v, "-") >= 2 && pseudoVersionRE.MatchString(v)
google.golang.org/api/internal/third_party/uritemplates
uritemplates.go#L190: if !validname.MatchString(result.name) {
gopkg.in/yaml.v2
encode.go#L293: return base60float.MatchString(s)
resolve.go#L163: if yamlStyleFloat.MatchString(plain) {
internal/lazyregexp
lazyre.go#L59: return r.re().MatchString(s)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |