- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleRegexp_FindString (0.13 sec)
-
src/regexp/example_test.go
re := regexp.MustCompile(`foo.?`) fmt.Println(re.Match([]byte(`seafood fool`))) fmt.Println(re.Match([]byte(`something else`))) // Output: // true // false } func ExampleRegexp_FindString() { re := regexp.MustCompile(`foo.?`) fmt.Printf("%q\n", re.FindString("seafood fool")) fmt.Printf("%q\n", re.FindString("meat")) // Output: // "food" // "" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:22:53 UTC 2023 - 11.1K bytes - Viewed (0)