D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
String
/
Filename :
rpartition-i.ri
back
Copy
U:RDoc::AnyMethod[iI"rpartition:ETI"String#rpartition;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"7Returns a 3-element array of substrings of +self+.;To:RDoc::Markup::BlankLine o; ; [I"HMatches a pattern against +self+, scanning backwards from the end. ;TI"The pattern is:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"2+string_or_regexp+ itself, if it is a Regexp.;To;;0; [o; ; [I"P<tt>Regexp.quote(string_or_regexp)</tt>, if +string_or_regexp+ is a string.;T@o; ; [I"JIf the pattern is matched, returns pre-match, last-match, post-match:;T@o:RDoc::Markup::Verbatim; [ I"9'hello'.rpartition('l') # => ["hel", "l", "o"] ;TI"9'hello'.rpartition('ll') # => ["he", "ll", "o"] ;TI"9'hello'.rpartition('h') # => ["", "h", "ello"] ;TI"9'hello'.rpartition('o') # => ["hell", "o", ""] ;TI"9'hello'.rpartition(/l+/) # => ["hel", "l", "o"] ;TI"9'hello'.rpartition('') # => ["hello", "", ""] ;TI"A'тест'.rpartition('т') # => ["тес", "т", ""] ;TI"K'こんにちは'.rpartition('に') # => ["こん", "に", "ちは"] ;T:@format0o; ; [I"SIf the pattern is not matched, returns two empty strings and a copy of +self+:;T@o;; [I"4'hello'.rpartition('x') # => ["", "", "hello"] ;T;0o; ; [I"-Related: String#partition, String#split.;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I",rpartition(sep) -> [head, match, tail] ;T0[ I" (p1);T@5FI"String;TcRDoc::NormalClass00