22件ヒット
[1-22件を表示]
(0.023秒)
種類
- 変数 (11)
- インスタンスメソッド (11)
モジュール
-
CGI
:: HtmlExtension (11) - Kernel (11)
検索結果
-
CGI
:: HtmlExtension # img(attributes) -> String (18235.0) -
img 要素を生成します。
...img 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
img({ "SRC" => "src", "ALT" => "alt", "WIDTH" => 100, "HEIGHT" => 50 })
# <IMG SRC="src" ALT="alt" WIDTH="100" HEIGHT="50">... -
Kernel
$ $ LAST _ PAREN _ MATCH -> String | nil (6213.0) -
$+ の別名
...名
require "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...