Given a value I want to validate it to check if it is a valid year. My criteria is simple where the value should be an integer with 4 characters. I know this is
4
Building on @r92 answer, for years 1970-2019:
(19[789]\d|20[01]\d)