⚝
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
/
MatchData
/
View File Name :
to_a-i.ri
U:RDoc::AnyMethod[iI" to_a:ETI"MatchData#to_a;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I""Returns the array of matches.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"-m = /(.)(.)(\d+)(\d)/.match("THX1138.") ;FI"3m.to_a #=> ["HX1138", "H", "X", "113", "8"] ;Fo; ; [ I"7Because <code>to_a</code> is called when expanding;TI"A<code>*</code><em>variable</em>, there's a useful assignment;TI"Ishortcut for extracting matched fields. This is slightly slower than;TI"?accessing the fields directly (as an intermediate array is;TI"generated).;T@o;; [ I";all,f1,f2,f3 = *(/(.)(.)(\d+)(\d)/.match("THX1138.")) ;FI"all #=> "HX1138" ;FI"f1 #=> "H" ;FI"f2 #=> "X" ;FI"f3 #=> "113";F: @file0I"mtch.to_a -> anArray ;T0[ I"();FI" re.c;T