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)
- 限制读取s3的某个文件夹下文件的权限 - 4月 14, 2021
- cli 批量restore s3DEEP_ARCHIVE - 4月 13, 2021
- 什么是gitops - 3月 25, 2021