- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleQuoteMeta (0.17 sec)
-
src/regexp/example_test.go
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: .+*?()|[]{}^$`)) // Output: // Escaping symbols like: \.\+\*\?\(\)\|\[\]\{\}\^\$ } func ExampleRegexp_Find() { re := regexp.MustCompile(`foo.?`)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:22:53 UTC 2023 - 11.1K bytes - Viewed (0)