What year is it?

Report a typo

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.

Write a program in Python 3
import re

# define regex template
template = ''
___

Create a free account to access the full topic