1 public string GetString(string str, string Split) 2 { 3 int v = str.IndexOf(Split); 4 string left = str.Substring(0, v + 1); 5 string right = str.Substring(v + 1); 6 string frist = str.Substring(v + 1, 1); 7 int number = 0; 8 string last = ""; 9 int count = 0; 10 if (frist == "0") 11 { 12 for (int i = 0; i < right.Length; i++) 13 { 14 var z = right.IndexOf('0'); 15 if (z != -1) 16 count++; 17 if (z == -1) 18 break; 19 right = right.Substring(z + 1); 20 } 21 number = Convert.ToInt32(right) + 1; 22 if (number.ToString().Length > right.Length) 23 count--; 24 last = left; 25 for (int i = 0; i < count; i++) 26 { 27 last = last + "0"; 28 } 29 } 30 else 31 number = Convert.ToInt32(right) + 1; 32 last = last + number; 33 return last; 34 }