Number Validator project working a good approach to take

that’s perfectly valid.
(I think I did it both ways for practice. But using a single regex requires a lot of time to work out)