ライブラリ
- ビルトイン (4)
検索結果
-
Symbol
# match(other) -> Integer | nil (15108) -
正規表現 other とのマッチを行います。
...her 比較対象のシンボルを指定します。
@return マッチが成功すればマッチした位置のインデックスを、そうでなければ nil を返します。
p :foo =~ /foo/ # => 0
p :foobar =~ /bar/ # => 3
p :foo =~ /bar/ # => nil
@see String#=~, String#match... -
Symbol
# =~(other) -> Integer | nil (8) -
正規表現 other とのマッチを行います。
...her 比較対象のシンボルを指定します。
@return マッチが成功すればマッチした位置のインデックスを、そうでなければ nil を返します。
p :foo =~ /foo/ # => 0
p :foobar =~ /bar/ # => 3
p :foo =~ /bar/ # => nil
@see String#=~, String#match...
