string[] results = str.Split(new char[] { ',', '.', ' ' }, StringSplitOptions.RemoveEmptyEntries);last one in results gives you the desired output..Here you can add any number of chars you wish to add expecting the chars other than ,
string s = "5555,,5555,3"; string[] parse = s.Split(','); Response.Write(parse[parse.Length - 1]); //RETURN 3