⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.127
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
MatchData
/
View File Name :
%5b%5d-i.ri
U:RDoc::AnyMethod[iI"[]:ETI"MatchData#[];TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HMatch Reference -- MatchData acts as an array, and may be accessed ;TI"Gusing the normal array indexing techniques.
mtch[0]
;TI"His equivalent to the special variable
$&
, and returns ;TI"7the entire matched string.
mtch[1]
, ;TI"F
mtch[2]
, and so on return the values of the matched ;TI"Bbackreferences (portions of the pattern between parentheses).;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"-m = /(.)(.)(\d+)(\d)/.match("THX1138.") ;TI"Dm #=> #
;TI"m[0] #=> "HX1138" ;TI"m[1, 2] #=> ["H", "X"] ;TI"&m[1..3] #=> ["H", "X", "113"] ;TI"!m[-3, 2] #=> ["X", "113"] ;TI" ;TI"'m = /(?
a+)b/.match("ccaaab") ;TI"2m #=> #
;TI"m["foo"] #=> "aaa" ;TI"m[:foo] #=> "aaa";T:@format0: @fileI" re.c;T:0@omit_headings_from_table_of_contents_below0I"†mtch[i] -> str or nil mtch[start, length] -> array mtch[range] -> array mtch[name] -> str or nil ;T0[ I"(p1, p2 = v2);T@!FI"MatchData;TcRDoc::NormalClass00