Instead of a regex, this could use the `minimum_value` and `maximum_value` validations plus DIGITS.  Same for `UID_UNIX`.

I would define DIGITS as `^[0-9]+$`.