String.split

String split (String delimiter, Number limit)

Parameters

delimiter Specifies the string to use for delimiting.
limit  

Description

Splits a string into a group of substrings, places those strings in an array, and returns the array.

The substrings are created by breaking the original string at places that match delimiter, the delimiter characters are removed. Returns an array whose elements are the substrings.