I've got a string:
"In the British-Commonwealth in some cases"
I want to split this string up in words, but also want to split on -, so I get one array:
Array[0] "In"
Array[1] "the"
Array[2] "British-"
Array[3] "Commonwealth"
Array[4] "in"
Array[5] "some"
Array[6] "cases"
How to do this? Im familar with the Split()-method, but it only accepts one character/string to split on.
"In the British-Commonwealth in some cases"
I want to split this string up in words, but also want to split on -, so I get one array:
Array[0] "In"
Array[1] "the"
Array[2] "British-"
Array[3] "Commonwealth"
Array[4] "in"
Array[5] "some"
Array[6] "cases"
How to do this? Im familar with the Split()-method, but it only accepts one character/string to split on.