repl.txt (683B)
1 {{alias}}( str, search[, fromIndex] ) 2 Returns the part of a string after the last occurrence of a specified 3 substring. 4 5 Parameters 6 ---------- 7 str: string 8 Input string. 9 10 search: string 11 Search value. 12 13 fromIndex: integer (optional) 14 Index of last character to be considered beginning of a match. 15 Default: `str.length`. 16 17 Returns 18 ------- 19 out: string 20 Substring. 21 22 Examples 23 -------- 24 > var out = {{alias}}( 'beep boop beep baz', 'beep' ) 25 ' baz' 26 > out = {{alias}}( 'Hello World!', 'Hello ' ) 27 'World!' 28 > out = {{alias}}( 'Hello World!', 'o', 5 ) 29 ' World!' 30 31 See Also 32 --------