#!/usr/bin/python
# URL that generated this code:
# http://txt2re.com/index-python.php3?s=11:Feb:2019%20%22This%20is%20an%20Example!%22&-6
import re
txt='11:Feb:2019 "This is an Example!"'
re1='.*?' # Non-greedy match on filler
re2='(2019)' # Year 1
rg = re.compile(re1+re2,re.IGNORECASE|re.DOTALL)
m = rg.search(txt)
if m:
year1=m.group(1)
print "("+year1+")"+"\n"
#-----
# Paste the code into a new python file. Then in Unix:'
# $ python x.py
#-----