るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.299秒)
トップページ > クエリ:p[x] > クエリ:$LAST_PAREN_MATCH[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

種類

ライブラリ

クラス

モジュール

検索結果

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

$+ の別名

...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=http://localhost...
.../link.html>link</a></td> </tr>
#enf of sample.rb

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

Object::SCRIPT_LINES__ -> Hash (6106.0)

ソースファイル別にまとめられたソースコードの各行。

...対象にはなりません。


例:
require 'pp'
SCRIPT_LINES__ = {}
require 'English'
p
p SCRIPT_LINES__

# => {"/usr/local/lib/ruby/1.6/English.rb"=>
# ["alias $ERROR_INFO $!\n",
# "alias $ERROR_POSITION $@\n",
# "alias $LOADED_F...
...EATURES $\"\n",
# :
# :
# "alias $POSTMATCH $'\n",
# "alias $LAST_PAREN_MATCH $+\n"]}...