るりまサーチ

最速Rubyリファレンスマニュアル検索!
144件ヒット [101-144件を表示] (0.019秒)
トップページ > クエリ:match[x] > 種類:特異メソッド[x]

別のキーワード

  1. _builtin match
  2. _builtin match?
  3. regexp match
  4. string match
  5. regexp last_match

ライブラリ

キーワード

検索結果

<< < 1 2 >>

Regexp.compile(string, option = nil, code = nil) -> Regexp (25.0)

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

...s is regexp", Regexp::IGNORECASE)
t1.match(str)
p $~ # => "This is Regexp"

t2 = Regexp.compile('
this # ここは使用されない
\ is
\ regexp # ここも使用されない
', Regexp::EXTENDED | Regexp::IGNORECASE)
t2.match(str)
p Regexp.last_match # => "This is Regexp"

str = "ふ...
...るいけや\nかわずとびこむ\nみずのおと"
t2 = Regexp.compile("ふる.*?と", Regexp::MULTILINE)
p t2.match(str)[0] # => "ふるいけや\nかわずと"
//}...

Regexp.new(string, option = nil) -> Regexp (25.0)

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

...s is regexp", Regexp::IGNORECASE)
t1.match(str)
p $~ # => "This is Regexp"

t2 = Regexp.compile('
this # ここは使用されない
\ is
\ regexp # ここも使用されない
', Regexp::EXTENDED | Regexp::IGNORECASE)
t2.match(str)
p Regexp.last_match # => "This is Regexp"

str = "ふ...
...るいけや\nかわずとびこむ\nみずのおと"
t2 = Regexp.compile("ふる.*?と", Regexp::MULTILINE)
p t2.match(str)[0] # => "ふるいけや\nかわずと"
//}...

Regexp.new(string, option = nil, code = nil) -> Regexp (25.0)

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

...s is regexp", Regexp::IGNORECASE)
t1.match(str)
p $~ # => "This is Regexp"

t2 = Regexp.compile('
this # ここは使用されない
\ is
\ regexp # ここも使用されない
', Regexp::EXTENDED | Regexp::IGNORECASE)
t2.match(str)
p Regexp.last_match # => "This is Regexp"

str = "ふ...
...るいけや\nかわずとびこむ\nみずのおと"
t2 = Regexp.compile("ふる.*?と", Regexp::MULTILINE)
p t2.match(str)[0] # => "ふるいけや\nかわずと"
//}...

OptionParser.accept(klass, pat = /.*/) {|str| ...} -> () (7.0)

オプションの引数を文字列から Ruby のオブジェクトに変換するための ブロックを登録します。すべての OptionParser インスタンスに共通です。

...しては変換用のブロックがデフォルトで登録されて
います。OptionParser#on を参照して下さい。

@param klass クラスオブジェクトを与えます。

@param pat match メソッドを持ったオブジェクト(Regexp オブジェクトなど)を与えます。...

Rinda::DRbObjectTemplate.new(uri = nil, ref = nil) (7.0)

@todo

...@todo

Creates a new DRbObjectTemplate that will match against +uri+ and
+ref+....

絞り込み条件を変える

<< < 1 2 >>