Syntax
string.split(separator, num)
string.split(separator)
string.split(regexpression, num)
string.split(regexpression)
The split() method splits the string into separate strings based on the regular expression or separator.
The method returns an array containing each of the segments found in the string.
See the reference entry for RegExp.