BF2Statistics.Validator.IsFloat C# (CSharp) Method

IsFloat() public static method

Determines if the given string can be converted to a float
public static IsFloat ( string line ) : bool
line string The string to be checked
return bool
        public static bool IsFloat(string line)
        {
            return Regex.IsMatch(line, @"^[0-9]*(?:\.[0-9]*)?$");
        }