- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 451 for NegExp (0.35 sec)
-
src/regexp/regexp.go
} else { regexp.prefix, regexp.prefixComplete, regexp.prefixEnd = onePassPrefix(prog) } if regexp.prefix != "" { // TODO(rsc): Remove this allocation by adding // IndexString to package bytes. regexp.prefixBytes = []byte(regexp.prefix) regexp.prefixRune, _ = utf8.DecodeRuneInString(regexp.prefix) } n := len(prog.Inst) i := 0 for matchSize[i] != 0 && matchSize[i] < n { i++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:50:01 UTC 2024 - 38.5K bytes - Viewed (0) -
src/regexp/syntax/regexp.go
package syntax // Note to implementers: // In this package, re is always a *Regexp and r is always a rune. import ( "slices" "strconv" "strings" "unicode" ) // A Regexp is a node in a regular expression syntax tree. type Regexp struct { Op Op // operator Flags Flags Sub []*Regexp // subexpressions, if any Sub0 [1]*Regexp // storage for short Sub
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:51 UTC 2024 - 11.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/internal/lazyregexp/lazyre.go
// Package lazyregexp is a thin wrapper over regexp, allowing the use of global // regexp variables without forcing them to be compiled at init. package lazyregexp import ( "os" "regexp" "strings" "sync" ) // Regexp is a wrapper around [regexp.Regexp], where the underlying regexp will be // compiled the first time it is needed. type Regexp struct { str string once sync.Once rx *regexp.Regexp
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 1.8K bytes - Viewed (0) -
src/regexp/example_test.go
fmt.Println(matched, err) matched, err = regexp.MatchString(`bar.*`, "seafood") fmt.Println(matched, err) matched, err = regexp.MatchString(`a(b`, "seafood") fmt.Println(matched, err) // Output: // true <nil> // false <nil> // false error parsing regexp: missing closing ): `a(b` } func ExampleQuoteMeta() { fmt.Println(regexp.QuoteMeta(`Escaping symbols like: .+*?()|[]{}^$`))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:22:53 UTC 2023 - 11.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/cors.go
} // Takes a list of strings and compiles them into a list of regular expressions func compileRegexps(regexpStrings []string) ([]*regexp.Regexp, error) { regexps := []*regexp.Regexp{} for _, regexpStr := range regexpStrings { r, err := regexp.Compile(regexpStr) if err != nil { return []*regexp.Regexp{}, err } regexps = append(regexps, r) } return regexps, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 15 13:59:10 UTC 2022 - 4.6K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/prune.go
package profile import ( "fmt" "regexp" "strings" ) var ( reservedNames = []string{"(anonymous namespace)", "operator()"} bracketRx = func() *regexp.Regexp { var quotedNames []string for _, name := range append(reservedNames, "(") { quotedNames = append(quotedNames, regexp.QuoteMeta(name)) } return regexp.MustCompile(strings.Join(quotedNames, "|")) }() )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 22 18:58:12 UTC 2022 - 5.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_runs.txt
[short] skip go test -short -coverpkg=strings strings regexp ! stdout '[^0-9]0\.0%' stdout 'strings.*coverage:.*[1-9][0-9.]+%' stdout 'regexp.*coverage:.*[1-9][0-9.]+%' go test -short -cover strings math regexp ! stdout '[^0-9]0\.0%' stdout 'strings.*coverage:.*[1-9][0-9.]+%' stdout 'math.*coverage:.*[1-9][0-9.]+%'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 413 bytes - Viewed (0) -
src/regexp/syntax/parse_test.go
t.Errorf("Parse(%#q, Perl): %v", regexp, err) } if re, err := Parse(regexp, POSIX); err == nil { t.Errorf("Parse(%#q, POSIX) = %s, should have failed", regexp, dump(re)) } } for _, regexp := range onlyPOSIX { if re, err := Parse(regexp, Perl); err == nil { t.Errorf("Parse(%#q, Perl) = %s, should have failed", regexp, dump(re)) } if _, err := Parse(regexp, POSIX); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 16:02:30 UTC 2023 - 16.2K bytes - Viewed (0) -
istioctl/pkg/dashboard/dashboard_test.go
WantException: false, }, { // case 4 Args: strings.Split("envoy --browser=false", " "), ExpectedRegexp: regexp.MustCompile(".*Error: specify a pod or --selector"), WantException: true, }, { // case 5 Args: strings.Split("envoy --browser=false pod-123456-7890", " "), ExpectedRegexp: regexp.MustCompile("http://localhost:3456"), WantException: false,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Nov 21 01:17:24 UTC 2023 - 4.3K bytes - Viewed (0) -
operator/pkg/validate/common.go
// matches. func repeated(res ...*regexp.Regexp) *regexp.Regexp { return match(group(expression(res...)).String() + `+`) } // group wraps the regexp in a non-capturing group. func group(res ...*regexp.Regexp) *regexp.Regexp { return match(`(?:` + expression(res...).String() + `)`) } // capture wraps the expression in a capturing group.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 10 15:35:03 UTC 2023 - 11K bytes - Viewed (0)