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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -