import re
test_string = 'a1b2cdefg'
matched = re.match("[a-z][0-9][a-z][0-9]+", test_string)
is_match = bool(matched)
print(is_match)
import re
regExPattern = re.compile("[0-9]")
input1 = "5"
if not re.fullmatch(regExPattern, input1):
print("input is not a single digit")
# Example from https://docs.python.org/3/howto/regex.html
import re
p = re.compile('ab*')
p.match(input1)