D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
MatchData
/
Filename :
pre_match-i.ri
back
Copy
U:RDoc::AnyMethod[iI"pre_match:ETI"MatchData#pre_match;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"CReturns the substring of the target string from its beginning ;TI"Bup to the first match in +self+ (that is, <tt>self[0]</tt>); ;TI"6equivalent to regexp global variable <tt>$`</tt>:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"-m = /(.)(.)(\d+)(\d)/.match("THX1138.") ;TI":# => #<MatchData "HX1138" 1:"H" 2:"X" 3:"113" 4:"8"> ;TI"m[0] # => "HX1138" ;TI"m.pre_match # => "T" ;T:@format0o; ; [I"#Related: MatchData#post_match.;T: @fileI" re.c;T:0@omit_headings_from_table_of_contents_below0I"pre_match -> string ;T0[ I"();T@FI"MatchData;TcRDoc::NormalClass00