⚝
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
/
String
/
View File Name :
match-i.ri
U:RDoc::AnyMethod[iI" match:ETI"String#match;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"PConverts <i>pattern</i> to a <code>Regexp</code> (if it isn't already one),;TI"Mthen invokes its <code>match</code> method on <i>str</i>. If the second;TI"Oparameter is present, it specifies the position in the string to begin the;TI"search.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"='hello'.match('(.)\1') #=> #<MatchData "ll" 1:"l"> ;FI"*'hello'.match('(.)\1')[0] #=> "ll" ;FI"*'hello'.match(/(.)\1/)[0] #=> "ll" ;FI")'hello'.match('xx') #=> nil ;Fo; ; [I"NIf a block is given, invoke the block with MatchData if match succeed, so;TI"that you can write;T@o;; [I"str.match(pat) {|m| ...} ;Fo; ; [I"instead of;T@o;; [I"if m = str.match(pat) ;FI" ... ;FI" end ;Fo; ; [I"CThe return value is a value from block execution in this case.;T: @file0I"bstr.match(pattern) -> matchdata or nil str.match(pattern, pos) -> matchdata or nil ;T0[ I"(*args);FI" string.c;T