⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
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 :
~
/
proc
/
self
/
root
/
usr
/
share
/
ri
/
3.0.0
/
system
/
String
/
View File Name :
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 =
regexp.match(self) ;T;0o; ; [I";With no block given, returns the computed +matchdata+:;To;; [I",'foo'.match('f') # => #
;TI",'foo'.match('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) # => #
;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 } # => #
;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