Write a regexp that will match any (positive or negative) even number, for example, -4, 1000, -20, etc. Mind that 0 is an even number, too.
Regexp quantifiers
Match even numbers
Report a typo
Write a program in Python 3
import re
# put your regex in the variable 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.