- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for FindAllSubmatchIndex (0.38 sec)
-
src/regexp/example_test.go
// referencing the values captured by the regex pattern. template := []byte("$key=$value\n") result := []byte{} // For each match of the regex in the content. for _, submatches := range pattern.FindAllSubmatchIndex(content, -1) { // Apply the captured submatches to the template and append the output // to the result. result = pattern.Expand(result, template, content, submatches) } fmt.Println(string(result))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:22:53 UTC 2023 - 11.1K bytes - Viewed (0) -
src/regexp/find_test.go
testSubmatchIndices(test, k, match, result[k], t) } } } func TestFindAllSubmatchIndex(t *testing.T) { for _, test := range findTests { testFindAllSubmatchIndex(&test, MustCompile(test.pat).FindAllSubmatchIndex([]byte(test.text), -1), t) } } func TestFindAllStringSubmatchIndex(t *testing.T) { for _, test := range findTests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 11 15:28:50 UTC 2021 - 16.3K bytes - Viewed (0) -
src/regexp/regexp.go
result = append(result, slice) }) return result } // FindAllSubmatchIndex is the 'All' version of [Regexp.FindSubmatchIndex]; it returns // a slice of all successive matches of the expression, as defined by the // 'All' description in the package comment. // A return value of nil indicates no match. func (re *Regexp) FindAllSubmatchIndex(b []byte, n int) [][]int { if n < 0 { n = len(b) + 1 }
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/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"(*Regexp).FindAllStringIndex", Method, 0}, {"(*Regexp).FindAllStringSubmatch", Method, 0}, {"(*Regexp).FindAllStringSubmatchIndex", Method, 0}, {"(*Regexp).FindAllSubmatch", Method, 0}, {"(*Regexp).FindAllSubmatchIndex", Method, 0}, {"(*Regexp).FindIndex", Method, 0}, {"(*Regexp).FindReaderIndex", Method, 0}, {"(*Regexp).FindReaderSubmatchIndex", Method, 0}, {"(*Regexp).FindString", Method, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.txt
pkg regexp, method (*Regexp) FindAllStringSubmatchIndex(string, int) [][]int pkg regexp, method (*Regexp) FindAllSubmatch([]uint8, int) [][][]uint8 pkg regexp, method (*Regexp) FindAllSubmatchIndex([]uint8, int) [][]int pkg regexp, method (*Regexp) FindIndex([]uint8) []int pkg regexp, method (*Regexp) FindReaderIndex(io.RuneReader) []int pkg regexp, method (*Regexp) FindReaderSubmatchIndex(io.RuneReader) []int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)