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

python - Getting ESC characters and non-printables from UDP socket / buffer -

Convert excel to pdf with VBScript -