I want to Extract 7 from this string GRN/GSI/2017/7 using Regex
I try it but it extract 2017
`string s1 = dt2.Rows[0]["Doc_No"].ToString();
string i1;
string[] numbers = Regex.Split(s1, @"\D+");
foreach (string value in numbers)
{
if (!string.IsNullOrEmpty(value))
{
i1 = value;
txtGRNNo.Text = i1;
}
}`