Split will not work with Cut/Paste?

Ok i have a program that will split numbers based on the space in between the numbers, this works all fine if I type the numbers in the textbox, but if I cut/paste the numbers from say Notepad or Work the program will not work, now the numbers are in a column instead of rows of them, BUT it will work if I type them in also as a column? I've been playing with different regex's like \p{Punct} and \p{Space}, these work but not if I cut/paste the column but will work on a cut/paste if they are in row form?

I'm lost any help.

[542 byte] By [DjKohna] at [2007-11-27 11:53:23]
# 1

If there's nothing but whitespace between the tokens, this should work: String[] parts = str.split("\\s+");

\s is the same as \p{Space} and the plus sign means "one or more".

uncle_alicea at 2007-7-29 18:49:58 > top of Java-index,Java Essentials,Java Programming...