split function
split(String str, String regex, Integer i)
A function to split a given string at the regular expressions and return the i’th (starting from 0) substring of the resulting list.
Parameters
- String str - the string value to extract a substring matching the given pattern.
- String regex - a regular expression
- Integer i - the index (>=0) of the substring to return