Hello I have a string and I want to split some characters from it like: space, comma and ";
". Normally I'm splitting on the comma from such a string:
myText.split(',')
But I want to split on any of these 3 characters? For example, if the string is "cat dog,fox;cow fish"
the result will be the array ["cat", "dog", "fox", "cow", "fish"]
.
how to do that?