Although there are a few notes that mention the issue with multiple commas, there is no mention of a solution for this:
string input = "1,2,3,4,5"; if (input.IndexOf(',') > 0) { string afterFirstComma = input.Split(new char[] { ',' }, 2)[1]; }
This will make afterFirstComma equal to "2,3,4,5"
Jaymz
source share