I have input field for year and I need a regex for validation it. I have such code: ^([12]\\d)?(\\d\\d)$. But I want allow to validate only years in certain range (
^([12]\\d)?(\\d\\d)$
(199[0-9]|200[0-9]|2010)
This will work in your 'example case'.
Helpful website: http://utilitymill.com/utility/Regex_For_Range