17 lines
267 B
Bash
17 lines
267 B
Bash
$ go run regular-expressions.go
|
|
true
|
|
true
|
|
peach
|
|
[0 5]
|
|
[peach ea]
|
|
[0 5 1 3]
|
|
[peach punch pinch]
|
|
[peach punch]
|
|
true
|
|
p([a-z]+)ch
|
|
a <fruit>
|
|
a PEACH
|
|
|
|
# For a complete reference on Go regular expressions check
|
|
# the [`regexp`](http://golang.org/pkg/regexp/) package docs.
|