INPUT "Your string: ", s$ IF REGEX(s$, "^[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?$") THEN PRINT "This is a number" ELSE PRINT "Not a number" ENDIF