Try:
String resultString = myString.replaceAll("[\\s|\\W]*", ",");
(Note the escaping of the \ i.e. \\)
This returns a String that has all sequences of whitespace (\s) or (|) non-word characters (\W - basically everything except a-zA-Z_0-9) replaced with ","
Now we can split it up:
String[] splitup = resultString.split(",");
We also could do it like:
String[] splitup = myString.replaceAll("[\\s|\\W]*", ",").split(",");
[ August 25, 2005: Message edited by: Scheepers de Bruin ]