[Solved] C# Split String before the first number


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

solved C# Split String before the first number