you can use the following Regex To extract no from your string
string input ="Example123456.csv";
input = Regex.Replace(input, "[^0-9]+", string.Empty);
the output will be 123456
you can use the following Regex To extract no from your string
string input ="Example123456.csv";
input = Regex.Replace(input, "[^0-9]+", string.Empty);
the output will be 123456