Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for submatch (0.18 sec)

  1. cmd/kubeadm/app/apis/bootstraptoken/v1/utils.go

    )
    
    const (
    	// When a token is matched with 'BootstrapTokenPattern', the size of validated substrings returned by
    	// regexp functions which contains 'Submatch' in their names will be 3.
    	// Submatch 0 is the match of the entire expression, submatch 1 is
    	// the match of the first parenthesized subexpression, and so on.
    	// e.g.:
    	// result := bootstraputil.BootstrapTokenRegexp.FindStringSubmatch("abcdef.1234567890123456")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. src/regexp/syntax/doc.go

    Unlimited repetitions are not subject to this restriction.
    
    Grouping:
    
    	(re)           numbered capturing group (submatch)
    	(?P<name>re)   named & numbered capturing group (submatch)
    	(?<name>re)    named & numbered capturing group (submatch)
    	(?:re)         non-capturing group
    	(?flags)       set flags within current group; non-capturing
    	(?flags:re)    set flags during re; non-capturing
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:21:02 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/rules/rules.go

    	opRes, opSub := r.Attr.GetResource().Resource, r.Attr.GetSubresource()
    	for _, res := range r.Rule.Resources {
    		res, sub := splitResource(res)
    		resMatch := res == "*" || res == opRes
    		subMatch := sub == "*" || sub == opSub
    		if resMatch && subMatch {
    			return true
    		}
    	}
    	return false
    }
    
    // IsExemptAdmissionConfigurationResource determines if an admission.Attributes object is describing
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:38:55 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  4. src/regexp/testdata/README

        the no match case runs the starred subexpression zero times,
        not once.  This is consistent with (a*)* matching a, which
        runs the starred subexpression one time, not twice.
      * The submatch choice is first match, not the POSIX rule.
    
    Such changes are marked with 'RE2/Go'.
    
    
    RE2 Test Files
    
    re2-exhaustive.txt.bz2 and re2-search.txt are built by running
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 27 20:18:25 UTC 2015
    - 957 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/debug_lines_test.go

    	"path/filepath"
    	"reflect"
    	"regexp"
    	"runtime"
    	"sort"
    	"strconv"
    	"strings"
    	"testing"
    )
    
    // Matches lines in genssa output that are marked "isstmt", and the parenthesized plus-prefixed line number is a submatch
    var asmLine *regexp.Regexp = regexp.MustCompile(`^\s[vb]\d+\s+\d+\s\(\+(\d+)\)`)
    
    // this matches e.g.                            `   v123456789   000007   (+9876654310) MOVUPS	X15, ""..autotmp_2-32(SP)`
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/regexp/backtrack.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // backtrack is a regular expression search with submatch
    // tracking for small regular expressions and texts. It allocates
    // a bit vector with (length of input) * (length of prog) bits,
    // to make sure it never explores the same (character position, instruction)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 17:25:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  7. pkg/volume/util/subpath/subpath.go

    }
    
    // Compile time-check for all implementers of subpath interface
    var _ Interface = &subpath{}
    var _ Interface = &FakeSubpath{}
    
    // FakeSubpath is a subpather implementation for testing
    type FakeSubpath struct{}
    
    // PrepareSafeSubpath is a fake implementation of PrepareSafeSubpath. Always returns
    // newHostPath == subPath.Path
    func (fs *FakeSubpath) PrepareSafeSubpath(subPath Subpath) (newHostPath string, cleanupAction func(), err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 27 02:59:53 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  8. pkg/kubelet/server/auth_test.go

    		"subpath of root 2": {subpath: "/foo/", path: "/", expected: true},
    		"subpath of root 3": {subpath: "/foo/bar", path: "/", expected: true},
    
    		"subpath of path 1": {subpath: "/foo", path: "/foo", expected: true},
    		"subpath of path 2": {subpath: "/foo/", path: "/foo", expected: true},
    		"subpath of path 3": {subpath: "/foo/bar", path: "/foo", expected: true},
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 18:09:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. pkg/volume/util/subpath/subpath_unsupported.go

    	return nil
    }
    
    func (sp *subpath) PrepareSafeSubpath(subPath Subpath) (newHostPath string, cleanupAction func(), err error) {
    	return subPath.Path, nil, errUnsupported
    }
    
    func (sp *subpath) CleanSubPaths(podDir string, volumeName string) error {
    	return errUnsupported
    }
    
    func (sp *subpath) SafeMakeDir(pathname string, base string, perm os.FileMode) error {
    	return errUnsupported
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/version/helpers.go

    	var err error
    	submatches := kubeVersionRegex.FindStringSubmatch(v)
    	if len(submatches) != 4 {
    		return 0, 0, 0, false
    	}
    	switch submatches[2] {
    	case "alpha":
    		vType = versionTypeAlpha
    	case "beta":
    		vType = versionTypeBeta
    	case "":
    		vType = versionTypeGA
    	default:
    		return 0, 0, 0, false
    	}
    	if majorVersion, err = strconv.Atoi(submatches[1]); err != nil {
    		return 0, 0, 0, false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 20 08:40:04 UTC 2018
    - 2.3K bytes
    - Viewed (0)
Back to top