ライブラリ
- English (60)
- ビルトイン (811)
- csv (36)
-
irb
/ cmd / help (12) - matrix (12)
-
minitest
/ spec (1) -
minitest
/ unit (1) -
net
/ telnet (10) - openssl (36)
- optparse (24)
- pathname (36)
- rake (12)
-
rdoc
/ context (24) -
rdoc
/ parser (12) -
rexml
/ document (36) -
rinda
/ rinda (24) -
ripper
/ lexer (12) -
rubygems
/ gem _ path _ searcher (24) -
rubygems
/ platform (12) -
rubygems
/ spec _ fetcher (24) - scanf (48)
- strscan (144)
クラス
- CSV (24)
- File (24)
-
Gem
:: GemPathSearcher (24) -
Gem
:: Platform (12) -
Gem
:: SpecFetcher (24) -
IRB
:: ExtendCommand :: Help (12) - MatchData (298)
-
Net
:: Telnet (8) - Object (13)
- OptionParser (24)
- Pathname (36)
-
RDoc
:: Context (24) -
RDoc
:: Parser (12) -
REXML
:: Elements (12) -
REXML
:: Entity (12) -
REXML
:: XPath (12) - Regexp (105)
-
Rinda
:: DRbObjectTemplate (12) - Ripper (12)
-
Scanf
:: FormatSpecifier (24) -
Scanf
:: FormatString (24) - String (81)
- StringScanner (144)
- Symbol (21)
モジュール
-
File
:: Constants (12) - Kernel (264)
-
MiniTest
:: Assertions (1) -
OpenSSL
:: X509 (36) -
Rake
:: TaskManager (12)
キーワード
-
$ & (12) -
$ & # 39; (12) -
$ 1 (12) -
$ 10 (12) -
$ 11 (12) -
$ 2 (12) -
$ 3 (12) -
$ 4 (12) -
$ 5 (12) -
$ 6 (12) -
$ 7 (12) -
$ 8 (12) -
$ 9 (12) -
$ LAST _ MATCH _ INFO (12) -
$ LAST _ PAREN _ MATCH (12) -
$ MATCH (12) -
$ POSTMATCH (12) -
$ PREMATCH (12) -
$ ` (12) -
$ ~ (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - == (12)
- =~ (12)
- CSV (12)
- DateMatcher (12)
- DateTimeMatcher (12)
- EPROGMISMATCH (12)
- ERPCMISMATCH (12)
- ErrDimensionMismatch (12)
-
FNM
_ DOTMATCH (12) - MatchData (12)
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - NoMatchingPatternError (6)
- Regexp (12)
-
SCRIPT
_ LINES _ _ (12) - Telnet (2)
- Template (12)
-
V
_ ERR _ AKID _ ISSUER _ SERIAL _ MISMATCH (12) -
V
_ ERR _ AKID _ SKID _ MISMATCH (12) -
V
_ ERR _ SUBJECT _ ISSUER _ MISMATCH (12) - [] (48)
- accept (24)
-
assert
_ match (1) - begin (12)
- byteoffset (6)
- captures (12)
-
check
_ until (12) - cmd (4)
- compile (12)
- deconstruct (2)
-
deconstruct
_ keys (2) - end (12)
-
enhance
_ with _ matching _ rule (12) - eql? (12)
- execute (12)
- fetch (12)
-
find
_ matching (12) - fnmatch (24)
- fnmatch? (24)
- gsub (24)
- gsub! (12)
- hash (12)
- inspect (12)
- irb (12)
-
last
_ match (24) -
last
_ match _ tried (6) - length (12)
- match? (39)
-
match
_ fds (12) -
match
_ gen (12) - matched (18)
- matched? (12)
-
matched
_ count (6) -
matched
_ size (12) -
matched
_ string (6) - matchedsize (12)
- matches? (12)
-
matching
_ file? (12) -
matching
_ files (12) -
mid
_ match? (6) -
must
_ match (1) -
named
_ captures (12) - names (12)
- new (24)
- offset (24)
-
parse
_ files _ matching (12) -
post
_ match (24) -
pre
_ match (24) - prune (6)
- regexp (12)
-
rexml
/ document (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / pristine _ command (12) -
scan
_ full (12) -
scan
_ until (12) - size (12)
-
skip
_ until (12) - string (12)
- sub (36)
- sub! (12)
-
to
_ a (24) -
to
_ s (12) -
token
_ match (12) -
unmatched
_ alias _ lists (12) -
unmatched
_ alias _ lists= (12) - unscan (12)
-
values
_ at (12) - waitfor (4)
-
whole
_ match _ p (12) - ~ (12)
- クラス/メソッドの定義 (12)
- パターンマッチ (12)
- 正規表現 (12)
検索結果
先頭5件
-
Gem
:: Platform . match(platform) -> bool (18101.0) -
@todo ???
@todo ??? -
Scanf
:: FormatSpecifier # match(str) (18101.0) -
@todo
@todo -
Scanf
:: FormatString # match(str) (18101.0) -
@todo
@todo -
MatchData
# post _ match -> String (9113.0) -
マッチした部分より後ろの文字列を返します($'と同じ)。
...マッチした部分より後ろの文字列を返します($'と同じ)。
//emlist[例][ruby]{
/(bar)(BAZ)?/ =~ "foobarbaz"
p $~.post_match # => "baz"
//}
@see MatchData#pre_match... -
MatchData
# pre _ match -> String (9113.0) -
マッチした部分より前の文字列を返します($`と同じ)。
...マッチした部分より前の文字列を返します($`と同じ)。
//emlist[例][ruby]{
/(bar)(BAZ)?/ =~ "foobarbaz"
p $~.pre_match # => "foo"
//}
@see MatchData#post_match... -
Regexp
. last _ match -> MatchData (6243.0) -
カレントスコープで最後に行った正規表現マッチの MatchData オ ブジェクトを返します。このメソッドの呼び出しは $~ の参照と同じです。
... 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
//}... -
Kernel
$ $ LAST _ MATCH _ INFO -> MatchData | nil (6219.0) -
$~ の別名
...f=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[2] #=> nil
end... -
Ripper
. token _ match(src , pattern) -> Ripper :: TokenPattern :: MatchData | nil (6201.0) -
Ruby プログラム src に対してパターン pattern をマッチし、 マッチデータを返します。
Ruby プログラム src に対してパターン pattern をマッチし、
マッチデータを返します。
ライブラリ内部で使用します。 -
Gem
:: SpecFetcher # find _ matching(dependency , all = false , matching _ platform = true) -> Array (6200.0) -
依存関係を満たす gemspec の名前の配列を返します。
...返します。
@param dependency 依存関係を指定します。
@param all 真を指定するとマッチする全てのバージョンの情報を返します。
@param matching_platform 偽を指定すると全てのプラットフォームの情報を返します。
@see Gem::Dependency... -
Symbol
# match?(regexp , pos = 0) -> bool (6175.0) -
regexp.match?(self, pos) と同じです。 regexp が文字列の場合は、正規表現にコンパイルします。 詳しくは Regexp#match? を参照してください。
...regexp.match?(self, pos) と同じです。
regexp が文字列の場合は、正規表現にコンパイルします。
詳しくは Regexp#match? を参照してください。
例:
:Ruby.match?(/R.../) # => true
:Ruby.match?('Ruby') # => true
:Ruby.match?('Ruby',1) # => false
:R......uby.match?('uby',1) # => true
:Ruby.match?(/P.../) # => false
$& # => nil
@see Regexp#match?, String#match?...