See
Documentation for split and
for regular expressions In short the regex "\s*" means: "zero or more whitespace characters". In
Java string literals you have to escape the backslash, so it becomes "\\s*"
split will split your string into parts, using "zero or more whitespaces" as separators. E.g, after
String[] parts = "This is a test".split("\\s*");
parts[0] contains "This", parts[1] contains "is", parts[2] contains "a", parts[3] contains "test".
[ October 25, 2007: Message edited by: Jan van Mansum ]