るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.079秒)
トップページ > クエリ:i[x] > クエリ:h[x] > クエリ:String[x] > クエリ:Ruby[x] > クエリ:=~[x] > ライブラリ:English[x]

別のキーワード

  1. _builtin to_h
  2. struct to_h
  3. openstruct to_h
  4. ostruct to_h
  5. hash to_h

モジュール

検索結果

Kernel$$LAST_PAREN_MATCH -> String | nil (6315.0)

$+ の別名

...uire "English"

r1 = Regexp.compile("<img src=(http:.+?)>")
r2 = Regexp.compile("<a href=(http|ftp).+?>(.+?)</a>")

while line = DATA.gets
[ r1, r2 ].each {|rep|
rep =~ line
p $+
}
end
__END__
<tr> <td><img src=http://localhost/a.jpg></td> <td>ikkou</td> <td><a href=h...
...ttp://localhost/link.html>link</a></td> </tr>
#enf of sample.rb

$ ruby sample.rb
"http://localhost/a.jpg"
"link"...