.NET RegEx Check input is numeric or not

By Super Man

Check input is numeric or not

private static bool IsNumeric(string input)
{
    return System.Text.RegularExpressions.Regex.IsMatch(input, "^\\d+$");
}

.NET RegEx Check input is numeric or not  (768 Views)