Tuesday, October 16, 2012

simple c# function for stripping non-numeric


  public static string stripNonNumeric(string str)
            {
                Regex digitsOnly = new Regex(@"[^\d]");
                return digitsOnly.Replace(str, "");
            }

No comments:

Post a Comment