static string ExtractNumbers(string expr)
{
return string.Join(null,System.Text.RegularExpressions.Regex.Split(expr, “[^\d]”));
}
Call as follows:
Response.Write (ExtractNumbers(“12EFR77”));
static string ExtractNumbers(string expr)
{
return string.Join(null,System.Text.RegularExpressions.Regex.Split(expr, “[^\d]”));
}
Call as follows:
Response.Write (ExtractNumbers(“12EFR77”));