Something like this should work:
string.Join("|", myString.Split('|').Select(x => x.PadLeft(4,'0')));
I made a fiddle: https://dotnetfiddle.net/uK1kyr
solved Format a sting in based on Divider symbol [closed]
Something like this should work:
string.Join("|", myString.Split('|').Select(x => x.PadLeft(4,'0')));
I made a fiddle: https://dotnetfiddle.net/uK1kyr
solved Format a sting in based on Divider symbol [closed]