- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleRegexp_SubexpNames (0.57 sec)
-
src/regexp/example_test.go
} func ExampleRegexp_ReplaceAllStringFunc() { re := regexp.MustCompile(`[^aeiou]`) fmt.Println(re.ReplaceAllStringFunc("seafood fool", strings.ToUpper)) // Output: // SeaFooD FooL } func ExampleRegexp_SubexpNames() { re := regexp.MustCompile(`(?P<first>[a-zA-Z]+) (?P<last>[a-zA-Z]+)`) fmt.Println(re.MatchString("Alan Turing")) fmt.Printf("%q\n", re.SubexpNames())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:22:53 UTC 2023 - 11.1K bytes - Viewed (0)