⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.13
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
String
/
Edit File: match-i.ri
U:RDoc::AnyMethod[iI" match:ETI"String#match;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"TReturns a \Matchdata object (or +nil+) based on +self+ and the given +pattern+.;To:RDoc::Markup::BlankLine o; ; [I"Note: also updates ;TI"`{Regexp-related global variables}[Regexp.html#class-Regexp-label-Special+global+variables].;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"JComputes +regexp+ by converting +pattern+ (if not already a \Regexp).;To:RDoc::Markup::Verbatim; [I""regexp = Regexp.new(pattern) ;T:@format0o;;0; [o; ; [I"MComputes +matchdata+, which will be either a \MatchData object or +nil+ ;TI"(see Regexp#match):;To;; [I"(matchdata = <tt>regexp.match(self) ;T;0o; ; [I";With no block given, returns the computed +matchdata+:;To;; [I",'foo'.match('f') # => #<MatchData "f"> ;TI",'foo'.match('o') # => #<MatchData "o"> ;TI"'foo'.match('x') # => nil ;T;0o; ; [I"QIf \Integer argument +offset+ is given, the search begins at index +offset+:;To;; [I""'foo'.match('f', 1) # => nil ;TI"/'foo'.match('o', 1) # => #<MatchData "o"> ;T;0o; ; [I"GWith a block given, calls the block with the computed +matchdata+ ;TI"*and returns the block's return value:;To;; [I"E'foo'.match(/o/) {|matchdata| matchdata } # => #<MatchData "o"> ;TI"8'foo'.match(/x/) {|matchdata| matchdata } # => nil ;TI":'foo'.match(/f/, 1) {|matchdata| matchdata } # => nil;T;0: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"zstring.match(pattern, offset = 0) -> matchdata or nil string.match(pattern, offset = 0) {|matchdata| ... } -> object ;T0[ I"(*args);T@>FI"String;TcRDoc::NormalClass00
Simpan