From 6fe415ca7f439d56321d327dfdd18105a09a70d1 Mon Sep 17 00:00:00 2001 From: Dmitry Koteroff Date: Fri, 15 Dec 2017 22:23:58 +0300 Subject: Added rsplit() for String class Docs updated --- doc/classes/String.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/String.xml b/doc/classes/String.xml index 8bbd52b417..9240009d9b 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -669,6 +669,20 @@ If [code]maxsplit[/code] is given, at most maxsplit number of splits occur, and the remainder of the string is returned as the final element of the list (thus, the list will have at most maxsplit+1 elements) + + + + + + + + + + + Splits the string by a [code]divisor[/code] string and returns an array of the substrings, starting from right. Example "One,Two,Three" will return ["One","Two","Three"] if split by ",". + If [code]maxsplit[/code] is specified, then it is number of splits to do, default is 0 which splits all the items. + + -- cgit v1.2.3