0
I’m trying to manipulate a string
I’m running the code:
string oldString = ",,,,,1001,1002,1003,1004,1005,1006,1007,1008";
string newString = oldString.Substring(oldString.IndexOf("1"));
I want the new string to be: "1001,1002,1003,1004,1005,1006,1007,1008"
But it is returning: ",1003,1004,1005,1006,1007,1008".
This code should work: https://repl.it/repls/VillainousTallFormat
– hkotsubo