func regexp.MustCompile
46 uses
regexp (current package)
regexp.go#L314: func MustCompile(str string) *Regexp {
github.com/aws/aws-sdk-go-v2/service/s3/internal/endpoints
endpoints.go#L97: Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"),
endpoints.go#L98: AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"),
endpoints.go#L99: AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"),
endpoints.go#L100: AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"),
endpoints.go#L101: AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"),
github.com/go-pg/migrations/v8
collection.go#L737: var migrationNameRE = regexp.MustCompile(`[^a-z0-9]+`)
github.com/google/go-cmp/cmp
options.go#L255: var identsRx = regexp.MustCompile(`^` + identRx + `(\.` + identRx + `)*$`)
github.com/google/go-cmp/cmp/internal/function
func.go#L68: var lastIdentRx = regexp.MustCompile(`[_\p{L}][_\p{L}\p{N}]*$`)
github.com/jinzhu/inflection
inflections.go#L129: regexp: regexp.MustCompile("^(?i)(" + uncountable + ")$"),
inflections.go#L138: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.singular) + "$"), replace: strings.ToUpper(value.plural)},
inflections.go#L139: inflection{regexp: regexp.MustCompile(strings.Title(value.singular) + "$"), replace: strings.Title(value.plural)},
inflections.go#L140: inflection{regexp: regexp.MustCompile(value.singular + "$"), replace: value.plural},
inflections.go#L147: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.plural) + "$"), replace: strings.ToUpper(value.singular)},
inflections.go#L148: inflection{regexp: regexp.MustCompile(strings.Title(value.plural) + "$"), replace: strings.Title(value.singular)},
inflections.go#L149: inflection{regexp: regexp.MustCompile(value.plural + "$"), replace: value.singular},
inflections.go#L157: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.find)), replace: strings.ToUpper(value.replace)},
inflections.go#L158: inflection{regexp: regexp.MustCompile(value.find), replace: value.replace},
inflections.go#L159: inflection{regexp: regexp.MustCompile("(?i)" + value.find), replace: value.replace},
inflections.go#L167: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.find)), replace: strings.ToUpper(value.replace)},
inflections.go#L168: inflection{regexp: regexp.MustCompile(value.find), replace: value.replace},
inflections.go#L169: inflection{regexp: regexp.MustCompile("(?i)" + value.find), replace: value.replace},
go/types
version.go#L82: var goVersionRx = regexp.MustCompile(`^go([1-9][0-9]*)\.(0|[1-9][0-9]*)$`)
golang.org/x/tools/go/packages
golist_overlay.go#L552: reg := regexp.MustCompile(`^` + re + `$`)
golang.org/x/tools/internal/gocommand
invoke.go#L52: var modConcurrencyError = regexp.MustCompile(`go:.*go.mod.*contents have changed`)
vendor.go#L35: var modFlagRegexp = regexp.MustCompile(`-mod[ =](\w+)`)
version.go#L75: re := regexp.MustCompile(`^go version (go\S+|devel \S+)`)
google.golang.org/grpc/internal/binarylog
env_config.go#L135: longMethodConfigRegexp = regexp.MustCompile(longMethodConfigRegexpStr)
env_config.go#L136: headerConfigRegexp = regexp.MustCompile(headerConfigRegexpStr)
env_config.go#L137: messageConfigRegexp = regexp.MustCompile(messageConfigRegexpStr)
env_config.go#L138: headerMessageConfigRegexp = regexp.MustCompile(headerMessageConfigRegexpStr)
google.golang.org/protobuf/internal/encoding/json
decode.go#L155: var errRegexp = regexp.MustCompile(`^([-+._a-zA-Z0-9]{1,32}|.)`)
internal/lazyregexp
lazyre.go#L30: r.rx = regexp.MustCompile(r.str)
internal/profile
legacy_profile.go#L22: countStartRE = regexp.MustCompile(`\A(\w+) profile: total \d+\n\z`)
legacy_profile.go#L23: countRE = regexp.MustCompile(`\A(\d+) @(( 0x[0-9a-f]+)+)\n\z`)
legacy_profile.go#L25: heapHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] *@ *(heap[_a-z0-9]*)/?(\d*)`)
legacy_profile.go#L26: heapSampleRE = regexp.MustCompile(`(-?\d+): *(-?\d+) *\[ *(\d+): *(\d+) *] @([ x0-9a-f]*)`)
legacy_profile.go#L28: contentionSampleRE = regexp.MustCompile(`(\d+) *(\d+) @([ x0-9a-f]*)`)
legacy_profile.go#L30: hexNumberRE = regexp.MustCompile(`0x[0-9a-f]+`)
legacy_profile.go#L32: growthHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ growthz`)
legacy_profile.go#L34: fragmentationHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ fragmentationz`)
legacy_profile.go#L36: threadzStartRE = regexp.MustCompile(`--- threadz \d+ ---`)
legacy_profile.go#L37: threadStartRE = regexp.MustCompile(`--- Thread ([[:xdigit:]]+) \(name: (.*)/(\d+)\) stack: ---`)
legacy_profile.go#L39: procMapsRE = regexp.MustCompile(`([[:xdigit:]]+)-([[:xdigit:]]+)\s+([-rwxp]+)\s+([[:xdigit:]]+)\s+([[:xdigit:]]+):([[:xdigit:]]+)\s+([[:digit:]]+)\s*(\S+)?`)
legacy_profile.go#L41: briefMapsRE = regexp.MustCompile(`\s*([[:xdigit:]]+)-([[:xdigit:]]+):\s*(\S+)(\s.*@)?([[:xdigit:]]+)?`)
profile.go#L195: var libRx = regexp.MustCompile(`([.]so$|[.]so[._][0-9]+)`)