Stripping non-numeric characters from a string in C#
Posted: May 13th, 2011 | Author: Matt | Tags: .net, development, regex, snippet | No Comments »
string output = Regex.Replace("String 2 Parse 4 Non Numerics", "[^0-9]", string.Empty)
In this case the variable “output” will hold the value “24″
