Regex reg = new Regex(@"([a-zA-Z]+)(\d+)"); Match result = reg.Match(TextBox1.Text); string txt = result.Groups[1].Value; string num = result.Groups[2].Value; TextBox2.Text = txt + (int.Parse(num) + 1);
textbox2
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)