2 ms·
“contains only digits” isn’t synonymous with “not (doesn’t have any digits)” It is synonymous with “none of the characters is a non-digit”, which is true for t
by Someone 5y ago
“contains only digits” isn’t synonymous with “not (doesn’t have any digits)”
It is synonymous with “none of the characters is a non-digit”, which is true for the empty string.