Regular Expression Match to test for a valid year December 28, 2022 by Tarik Years from 1000 to 2999 ^[12][0-9]{3}$ For 1900-2099 ^(19|20)\d{2}$