Current File : //proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Regexp/match-i.yaml |
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Returns a <tt>MatchData</tt> object describing the match, or <tt>nil</tt> if there was no match. This is equivalent to retrieving the value of the special variable <tt>$~</tt> following a normal match.
- !ruby/struct:SM::Flow::VERB
body: " /(.)(.)(.)/.match("abc")[2] #=> "b"\n"
full_name: Regexp#match
is_singleton: false
name: match
params: |
rxp.match(str) => matchdata or nil
visibility: public