string numbers = "DB1031229"; string s0 = numbers.Substring(0, 2); string s9 = numbers.Substring(2, 2); string s10 = numbers.Substring(5);
using System.Text.RegularExpressions; Regex r = new Regex("DB"); var v = "DB1031229"; string[] s = r.Split(v); Match n = r.Match(v); string v1=n.ToString();//DB string v2 = s[1].Substring(0, 2);//"10" string v3 = s[1].Substring(3); //"1229"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)