1 2 3 4 5 6 7 8 9 10 11 12 |
#!/usr/local/bin/ruby -w def show_regexp(a,re) if a =~ re "#{$`}<<#{$&}>>#{$'}" else "no match" end end puts show_regexp('very interesting',/t/) puts show_regexp('Fats Waller',/a/) |
Latest posts by Zhiming Zhang (see all)
- istio Ingress Gateways - 十一月 25, 2020
- Istio VirtualService - 十一月 23, 2020
- istio 组件 - 十一月 18, 2020