每个 Ruby 核心方法都可以接受一个正则表达式作为参数
Enumerable#all?
Enumerable#any?
Enumerable#grep
Enumerable#grep_v
Enumerable#none?
Enumerable#one?
Enumerable#slice_after
Enumerable#slice_before
Regexp#=~
Regexp#match
Regexp#match?
Regexp.new
Regexp.union
String#=~
String#[]=
String#byteindex
String#byterindex
String#gsub
String#gsub!
String#index
String#match
String#match?
String#partition
String#rindex
String#rpartition
String#scan
String#slice
String#slice!
String#split
String#start_with?
String#sub
String#sub!
Symbol#=~
Symbol#match
Symbol#match?
Symbol#slice
Symbol#start_with?