Now it is time to practice your regexp writing skills! Write a regular expression in the variable template in such a way that it would match the years from 2000 to 2019 (including 2019). Note that your template should not match any other year or random strings that do not contain any year at all.
Regexp sets and ranges
What year is it?
Report a typo
Write a program in Python 3
import re
# define regex template
template = ''
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.