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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -