Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# regex number only

Regex

string input = "1-205-330-2342";
string result = Regex.Replace(input, @"[^d]", "");  //number only
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #number
ADD COMMENT
Topic
Name
2+1 =