Split a string into an array with undefined whitespaces

I have this data that I'm trying to split up into separate parts, the only problem is is that the whitespaces in between each value isn't the same. For example:

2010   1    5.1     0.9      11    55.4    86.1#

Any ideas?


String[] values = input.split("\\s+");


Tokenize the string, then remove whitespace. I will leave the implementation up to you in case this is homework.

Need Your Help

c# ASP.NET newb redirect question

c# asp.net

Hey I'm trying to get this working but I am not a c# programmer. i got this code to display you what i would like to do. but of cause its not working. Error: CS1519: Invalid Token...

Matlab Bwareaopen equivalent function in OpenCV

count opencv sum pixels

I'm trying to find similar or equivalent function of Matlabs "Bwareaopen" function in OpenCV?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.