ch
This commit is contained in:
parent
ad4eba0796
commit
9bded21e50
3 changed files with 134 additions and 25 deletions
|
|
@ -2,16 +2,9 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
)
|
||||
|
||||
func main() {
|
||||
pattern := regexp.MustCompile(`o\w*g`)
|
||||
fmt.Println(pattern.FindString("oogenesis")) // returns ""
|
||||
fmt.Println(pattern.FindString("ck")) // returns "ook"
|
||||
fmt.Println(pattern.FindString("oocyst")) // returns ""
|
||||
fmt.Println(pattern.FindString("book")) // returns "ook"}
|
||||
match, what := regexp.MatchString("p([a-z]+)ch", "peach")
|
||||
fmt.Println(match)
|
||||
fmt.Println(what)
|
||||
i := 0xB4
|
||||
fmt.Println(i)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue