HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/String/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::BlankLineo;
;	[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