X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/MatchData
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
MatchData
/
📄
%5b%5d-i.yaml
(984 B)
ðŸ“
..
📄
begin-i.yaml
(476 B)
📄
captures-i.yaml
(551 B)
📄
cdesc-MatchData.yaml
(1.39 KB)
📄
end-i.yaml
(500 B)
📄
inspect-i.yaml
(699 B)
📄
length-i.yaml
(456 B)
📄
offset-i.yaml
(494 B)
📄
post_match-i.yaml
(514 B)
📄
pre_match-i.yaml
(491 B)
📄
pretty_print-i.yaml
(182 B)
📄
select-i.yaml
(561 B)
📄
size-i.yaml
(452 B)
📄
string-i.yaml
(434 B)
📄
to_a-i.yaml
(980 B)
📄
to_s-i.yaml
(394 B)
📄
values_at-i.yaml
(665 B)
Editing: %5b%5d-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Match Reference---<tt>MatchData</tt> acts as an array, and may be accessed using the normal array indexing techniques. <em>mtch</em>[0] is equivalent to the special variable <tt>$&</tt>, and returns the entire matched string. <em>mtch</em>[1], <em>mtch</em>[2], and so on return the values of the matched backreferences (portions of the pattern between parentheses). - !ruby/struct:SM::Flow::VERB body: " m = /(.)(.)(\\d+)(\\d)/.match("THX1138.")\n m[0] #=> "HX1138"\n m[1, 2] #=> ["H", "X"]\n m[1..3] #=> ["H", "X", "113"]\n m[-3, 2] #=> ["X", "113"]\n" full_name: MatchData#[] is_singleton: false name: "[]" params: | mtch[i] => obj mtch[start, length] => array mtch[range] => array visibility: public
Upload File
Create Folder