144件ヒット
[101-144件を表示]
(0.024秒)
ライブラリ
- ビルトイン (96)
-
json
/ add / regexp (12) -
rdoc
/ parser (12) - uri (24)
クラス
-
RDoc
:: Parser (12) - Regexp (108)
モジュール
- URI (24)
キーワード
- compile (12)
- escape (12)
-
json
_ create (12) -
last
_ match (24) - new (12)
- parsers (12)
- quote (12)
-
try
_ convert (12) - union (12)
検索結果
先頭4件
-
Regexp
. last _ match -> MatchData (12042.0) -
カレントスコープで最後に行った正規表現マッチの MatchData オ ブジェクトを返します。このメソッドの呼び出しは $~ の参照と同じです。
...のメソッドの呼び出しは $~
の参照と同じです。
//emlist[例][ruby]{
/(.)(.)/ =~ "ab"
p Regexp.last_match # => #<MatchData:0x4599e58>
p Regexp.last_match[0] # => "ab"
p Regexp.last_match[1] # => "a"
p Regexp.last_match[2] # => "b"
p Regexp.last_match[3] # => nil
//}... -
Regexp
. escape(string) -> String (12007.0) -
string の中で正規表現において特別な意味を持つ文字の直前にエ スケープ文字(バックスラッシュ)を挿入した文字列を返します。
...持つ文字の直前にエ
スケープ文字(バックスラッシュ)を挿入した文字列を返します。
@param string 正規表現において特別な意味をもつ文字をもつ文字列を指定します。
//emlist[例][ruby]{
rp = Regexp.escape("$bc^")
p rp # => "\\$bc\\^"
//}... -
Regexp
. quote(string) -> String (12007.0) -
string の中で正規表現において特別な意味を持つ文字の直前にエ スケープ文字(バックスラッシュ)を挿入した文字列を返します。
...持つ文字の直前にエ
スケープ文字(バックスラッシュ)を挿入した文字列を返します。
@param string 正規表現において特別な意味をもつ文字をもつ文字列を指定します。
//emlist[例][ruby]{
rp = Regexp.escape("$bc^")
p rp # => "\\$bc\\^"
//}... -
RDoc
:: Parser . parsers -> [[Regexp , RDoc :: Parser]] (202.0) -
RDoc::Parser#parse_files_matching で登録した正規表現とパーサクラ スの配列の配列を返します。
RDoc::Parser#parse_files_matching で登録した正規表現とパーサクラ
スの配列の配列を返します。