>>106508660
https://regex101.com/r/zND6BN/1
You're missing the sign check after [eE]
>>106508374
literally took me less than 10 minutes:
bool isNumber(char* s) {
bool has_floatp = false;
bool has_intp = false;
bool valid = true;
if (*s == '+' || *s == '-') ++s;
if (!*s) return false;
while (*s >= '0' && *s <= '9' && (has_intp = true)) ++s;
if (*s == 'e' || *s == 'E')
Comment too long. Click here to view the full text.