1件ヒット
[1-1件を表示]
(0.058秒)
ライブラリ
- ビルトイン (1)
検索結果
-
Symbol
# match(other) -> Integer | nil (54415.0) -
正規表現 other とのマッチを行います。
正規表現 other とのマッチを行います。
(self.to_s.match(other) と同じです。)
@param other 比較対象のシンボルを指定します。
@return マッチが成功すればマッチした位置を、そうでなければ nil を返します。
p :foo.match(/foo/) # => 0
p :foobar.match(/bar/) # => 3
p :foo.match(/bar/) # => nil
@see String#match