U:RDoc::AnyMethod[iI"=~:ETI"String#=~;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [
I"RMatch---If obj is a Regexp
, use it as a pattern to match ;TI"Fagainst str,and returns the position the match starts, or ;TI"?nil
if there is no match. Otherwise, invokes ;TI"Cobj.=~, passing str as an argument. The default ;TI"E=~
in Object
returns nil
.;To:RDoc::Markup::BlankLine o;
; [I"9Note: str =~ regexp
is not the same as ;TI"Lregexp =~ str
. Strings captured from named capture groups ;TI"=are assigned to local variables only in the second case.;T@o:RDoc::Markup::Verbatim; [I"&"cat o' 9 tails" =~ /\d/ #=> 7
;TI"'"cat o' 9 tails" =~ 9 #=> nil;T:@format0:
@fileI"
string.c;T:0@omit_headings_from_table_of_contents_below0I"$str =~ obj -> integer or nil
;T0[ I" (p1);T@FI"String;TcRDoc::NormalClassI"
scanf;T0