18 lines
304 B
Bash
18 lines
304 B
Bash
$ go run regular-expressions.go
|
|
true
|
|
true
|
|
peach
|
|
[0 5]
|
|
[peach ea]
|
|
[0 5 1 3]
|
|
[peach punch pinch]
|
|
[[0 5 1 3] [6 11 7 9] [12 17 13 15]]
|
|
[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.
|