Language Reference |
See Also Applies To
Removes text from a string.
The split method syntax has these parts:
Part Description stringObj Required. The String object or literal to remove text from. This object is not modified by the split method. rgExp Required. A Regular Expression object describing what to remove.
The result of the split method is a copy of stringObj after all successful matches have been removed.
The method updates the RegExp object.