HI Takeyoshi,
This Regex may work for you,
(Winter|Spring|Fall) [2-9][0-9]{3}
Explanation:
- (Winter|Spring|Fall) matches one of the three season names separated by the pipe symbol |.
- [2-9] matches the first digit of the year between 2 and 9 (i.e., 2, 3, ..., 9).
- [0-9]{3} matches any three digits (0-9), which correspond to the last three digits of the year. Together, [2-9][0-9]{3} matches any year between 2020 and 2099.
Therefore, this regular expression will match strings like Winter 2022, Spring 2034, Fall 2099, but will not match strings like Summer 2023 or Spring 1999.
Please try it and let me know,
Hope it helps!