Whenever you work with text, you need to be able to concatenate words (string them together) and split them apart. In this tutorial, we shall learn how to split a string in bash shell scripting with a delimiter of single and multiple character lengths. If you need to split a string into collection (list, set or whatever you want) – use Pattern. In C++, there is no inbuilt split method for string. The following example uses spaces, commas, periods, colons, and tabs as separating characters, which are passed to Split in an array . When a separator isn’t defined, whitespace(” “) is used. Ask Question Asked 9 years, 6 months ago. string[] separatingStrings = { "<<", "..." }; string text = "one<