108件ヒット
[1-100件を表示]
(0.142秒)
種類
- インスタンスメソッド (72)
- 変数 (24)
- ライブラリ (12)
クラス
モジュール
-
CGI
:: HtmlExtension (36) - Kernel (24)
キーワード
-
$ LAST _ MATCH _ INFO (12) -
$ LAST _ PAREN _ MATCH (12) - a (24)
- base (12)
- href (12)
-
rexml
/ document (12)
検索結果
先頭5件
-
RSS
:: Maker :: XMLStyleSheets :: XMLStyleSheet # href=() (21100.0) -
@todo
...@todo... -
RSS
:: XMLStyleSheet # href= (18101.0) -
@todo
...@todo... -
Kernel
$ $ LAST _ MATCH _ INFO -> MatchData | nil (6112.0) -
$~ の別名
...h"
str = "<a href=https://www.ruby-lang.org/en/about/license.txt>license</a>"
if /<a href=(.+?)>/ =~ str
p $LAST_MATCH_INFO[0] #=> "<a href=https://www.ruby-lang.org/en/about/license.txt>"
p $LAST_MATCH_INFO[1] #=> "https://www.ruby-lang.org/en/about/license.txt"
p $LAST_MATCH_INFO... -
Kernel
$ $ LAST _ PAREN _ MATCH -> String | nil (6106.0) -
$+ の別名
...c=(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=http://localhost/link.html>link</a></td> </tr>......#enf of sample.rb
$ ruby sample.rb
"http://localhost/a.jpg"
"link"... -
rexml
/ document (6006.0) -
DOM スタイルの XML パーサ。
...L::Document.new で XML 文書から DOM ツリーを
構築し、ツリーのノードの各メソッドで文書の内容にアクセスします。
以下のプログラムではブックマークの XML からデータを取り出します。
//emlist[][ruby]{
require 'rexml/document'
require......'pp'
Bookmark = Struct.new(:href, :title, :desc)
doc = REXML::Document.new(<<XML)
<?xml version="1.0" encoding="UTF-8" ?>
<xbel version="1.0">
<bookmark href="http://www.ruby-lang.org/ja/">
<title>オブジェクト指向スクリプト言語 Ruby</title>
<desc>Rubyの公式サイト</de......k href="http://rurema.clear-code.com/">
<title>最速Rubyリファレンスマニュアル検索! | るりまサーチ</title>
<desc>Rubyリファレンスマニュアルを全文検索できる。
とても便利。
</desc>
</bookmark>
<bookmark href="https://github.com/rurema/bit... -
CGI
:: HtmlExtension # a(href = "") -> String (3102.0) -
a 要素を生成します。
...定することもできます。
例:
a("http://www.example.com") { "Example" }
# => "<A HREF=\"http://www.example.com\">Example</A>"
a("HREF" => "http://www.example.com", "TARGET" => "_top") { "Example" }
# => "<A HREF=\"http://www.example.com\" TARGET=\"_top\">Example</A>"... -
CGI
:: HtmlExtension # a(href = "") { . . . } -> String (3102.0) -
a 要素を生成します。
...定することもできます。
例:
a("http://www.example.com") { "Example" }
# => "<A HREF=\"http://www.example.com\">Example</A>"
a("HREF" => "http://www.example.com", "TARGET" => "_top") { "Example" }
# => "<A HREF=\"http://www.example.com\" TARGET=\"_top\">Example</A>"... -
CGI
:: HtmlExtension # base(href = "") -> String (3101.0) -
base 要素を生成します。
...base 要素を生成します。
@param href 文字列を指定します。属性をハッシュで指定することもできます。
例:
base("http://www.example.com/cgi")
# => "<BASE HREF=\"http://www.example.com/cgi\">"... -
RSS
:: XMLStyleSheet # href (3001.0) -
@todo
...@todo...