D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Regexp
/
Filename :
named_captures-i.ri
back
Copy
U:RDoc::AnyMethod[iI"named_captures:ETI"Regexp#named_captures;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I":Returns a hash representing named captures of +self+ ;TI"<(see {Named Captures}[rdoc-ref:Regexp@Named+Captures]):;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"-Each key is the name of a named capture.;To;;0; [o; ; [I"FEach value is an array of integer indexes for that named capture.;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [I"G/(?<foo>.)(?<bar>.)/.named_captures # => {"foo"=>[1], "bar"=>[2]} ;TI">/(?<foo>.)(?<foo>.)/.named_captures # => {"foo"=>[1, 2]} ;TI"0/(.)(.)/.named_captures # => {};T:@format0: @fileI" re.c;T:0@omit_headings_from_table_of_contents_below0I"named_captures -> hash ;T0[ I"();T@$FI"Regexp;TcRDoc::NormalClass00