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)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021