To actually answer your question, String.split (String regularExpression)
uses a regular expression to determine what to split the array by.
This regular expression below will try to split the array by any one of these characters:
- ,
- ;
- space
- \
- /
It is using an "Enumeration" that will match 1 or more of these characters in a row, and then split on them:
String[] valueS = input.split("[,;\\s\\\\/]+");
Hope this helps.