590件ヒット
[1-100件を表示]
(0.197秒)
ライブラリ
クラス
-
Etc
:: Passwd (12) -
Gem
:: Platform (24) -
Gem
:: Specification (12) - IO (16)
- MatchData (12)
-
Net
:: FTP (12) -
Net
:: FTP :: MLSxEntry (10) -
Net
:: HTTP (12) -
Net
:: IMAP :: Address (12) -
Net
:: IMAP :: ContentDisposition (24) - Object (6)
-
OpenSSL
:: SSL :: SSLSocket (12) -
Resolv
:: DNS :: Resource :: HINFO (12) -
Resolv
:: Hosts (48) - String (93)
- StringIO (108)
- StringScanner (60)
- Symbol (9)
- UDPSocket (12)
-
URI
:: Generic (24) -
WEBrick
:: HTTPRequest (12)
モジュール
-
CGI
:: HtmlExtension (24) -
CGI
:: QueryExtension (24)
キーワード
- charpos (12)
- close (12)
-
close
_ read (12) -
close
_ write (12) - closed? (12)
-
closed
_ read? (12) -
closed
_ write? (12) -
dsp
_ type (12) - eos? (12)
- facts (10)
- form (24)
- gecos (12)
- getaddress (12)
- getaddresses (12)
- getname (12)
- getnames (12)
- host (48)
- hostname (24)
- index (12)
- insert (12)
-
local
_ host (12) - match (24)
- match? (18)
- param (12)
- pos (24)
- pos= (24)
-
post
_ match (24) - pread (8)
- pwrite (8)
-
remote
_ host (12) - rindex (12)
- send (12)
- slice! (12)
- system (12)
- tainted? (6)
- tell (12)
-
to
_ s (12) - tosjis (12)
検索結果
先頭5件
-
Gem
:: Platform # os -> String (21319.0) -
OS の種類を返します。
...
OS の種類を返します。... -
String
# tosjis -> String (21302.0) -
self のエンコーディングを shift_jis に変換した文字列を 返します。変換元のエンコーディングは文字列の内容から推測します。
...self のエンコーディングを shift_jis に変換した文字列を
返します。変換元のエンコーディングは文字列の内容から推測します。
このメソッドは MIME エンコードされた文字列を展開し、
いわゆる半角カナを全角に変換します......。
これらを変換したくない場合は、 NKF.#nkf('-sxm0', str)
を使ってください。
@see Kconv.#tosjis... -
Resolv
:: DNS :: Resource :: HINFO # os -> String (18319.0) -
ホストで使われる OS 名を返します。
...ホストで使われる OS 名を返します。... -
StringScanner
# post _ match -> String | nil (15326.0) -
前回マッチを行った文字列のうち、マッチしたところよりも後ろの 部分文字列を返します。前回のマッチが失敗していると常に nil を 返します。
...//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.post_match # => nil
s.scan(/\w+/) # => "test"
s.post_match # => " string"
s.scan(/\w+/) # => nil
s.post_match # => nil
s.scan(/\s+/) # => " "
s.post_match # => "string"
s.scan(/\w+/) # => "string"
s.post_match # =>......""
s.scan(/\w+/) # => nil
s.post_match # => nil
//}... -
CGI
:: QueryExtension # remote _ host -> String (15302.0) -
ENV['REMOTE_HOST'] を返します。
...ENV['REMOTE_HOST'] を返します。... -
MatchData
# post _ match -> String (15302.0) -
マッチした部分より後ろの文字列を返します($'と同じ)。
...マッチした部分より後ろの文字列を返します($'と同じ)。
//emlist[例][ruby]{
/(bar)(BAZ)?/ =~ "foobarbaz"
p $~.post_match # => "baz"
//}
@see MatchData#pre_match... -
String
# match(regexp , pos = 0) -> MatchData | nil (15301.0) -
regexp.match(self, pos) と同じです。 regexp が文字列の場合は、正規表現にコンパイルします。 詳しくは Regexp#match を参照してください。
...regexp.match(self, pos) と同じです。
regexp が文字列の場合は、正規表現にコンパイルします。
詳しくは Regexp#match を参照してください。
//emlist[例: regexp のみの場合][ruby]{
'hello'.match('(.)\1') # => #<MatchData "ll" 1:"l">
'hello'.match('(.)\1......ll"
'hello'.match(/(.)\1/)[0] # => "ll"
'hello'.match('xx') # => nil
//}
//emlist[例: regexp, pos を指定した場合][ruby]{
'hoge hige hege bar'.match('h.ge', 0) # => #<MatchData "hoge">
'hoge hige hege bar'.match('h.ge', 1) # => #<MatchData "hige">
//}
//emlist[例: ブロ......ックを指定した場合][ruby]{
'hello'.match('(.)\1'){|e|"match #{$1}"} # => "match l"
'hello'.match('xx'){|e|"match #{$1}"} # マッチしないためブロックは実行されない
//}
@see Regexp#match, Symbol#match... -
String
# insert(pos , other) -> self (15207.0) -
pos 番目の文字の直前に文字列 other を挿入します。 self[pos, 0] = other と同じ操作です。
...pos 番目の文字の直前に文字列 other を挿入します。
self[pos, 0] = other と同じ操作です。
@param pos 文字列を挿入するインデックス
@param other 挿入する文字列
//emlist[例][ruby]{
str = "foobaz"
str.insert(3, "bar")
p str # => "foobarbaz"
//}......@see String#[]=... -
String
# match(regexp , pos = 0) {|m| . . . } -> object (15201.0) -
regexp.match(self, pos) と同じです。 regexp が文字列の場合は、正規表現にコンパイルします。 詳しくは Regexp#match を参照してください。
...regexp.match(self, pos) と同じです。
regexp が文字列の場合は、正規表現にコンパイルします。
詳しくは Regexp#match を参照してください。
//emlist[例: regexp のみの場合][ruby]{
'hello'.match('(.)\1') # => #<MatchData "ll" 1:"l">
'hello'.match('(.)\1......ll"
'hello'.match(/(.)\1/)[0] # => "ll"
'hello'.match('xx') # => nil
//}
//emlist[例: regexp, pos を指定した場合][ruby]{
'hoge hige hege bar'.match('h.ge', 0) # => #<MatchData "hoge">
'hoge hige hege bar'.match('h.ge', 1) # => #<MatchData "hige">
//}
//emlist[例: ブロ......ックを指定した場合][ruby]{
'hello'.match('(.)\1'){|e|"match #{$1}"} # => "match l"
'hello'.match('xx'){|e|"match #{$1}"} # マッチしないためブロックは実行されない
//}
@see Regexp#match, Symbol#match...