Split line with spaces c#? -


i've text in following format in file.

02-12-5-05-0108-000      2                  l 

there 6 spaces after -000 , 18 spaces after 2. need output following,

02-12-5-05-0108-000 2 l 

what best way it?

regex.split(inputstring, @"\s+") handle 1 or more space without need iterate , split on single space.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -