Standard LibraryTypesstringMethodssplitOn this pagesplit Method of string. split(const string token) -> List Splits the given string into a list of strings. Parameters token: The token to split on Example var input = "Hello|World|How|Are|You"var words = input.split("|")words[1]//-> World See also: string