c# regex validation string of numbers code example
Example: c# regex number only
Regex
string input = "1-205-330-2342";
string result = Regex.Replace(input, @"[^\d]", ""); //number only
Regex
string input = "1-205-330-2342";
string result = Regex.Replace(input, @"[^\d]", ""); //number only