gobyexample/examples/regular-expressions/regular-expressions.sh
2019-10-09 21:29:55 +03:00

18 lines
387 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
# Для получения полной ссылки на регулярные выражения Go
# проверьте документацию пакета [`regexp`](http://golang.org/pkg/regexp/).