sbool isPositiveNumberString(S s) { // detect + sign or non-zero number before decimal point // or non-zero number after decimal point ret regexpFind("^\\+|^0*[1-9]|^0*\\.0*[1-9]", s); }