#!/usr/bin/python
# URL that generated this code:
# http://txt2re.com/index-python.php3?s=08:Nov:2018%20%22This%20is%20an%20Example!%22&18&-1
import re
txt='08:Nov:2018 "This is an Example!"'
re1='.*?' # Non-greedy match on filler
re2='("This is an Example!")' # Double Quote String 1
re3='((?:[a-z][a-z0-9_]*))' # Variable Name 1
rg = re.compile(re1+re2+re3,re.IGNORECASE|re.DOTALL)
m = rg.search(txt)
if m:
string1=m.group(1)
var1=m.group(2)
print "("+string1+")"+"("+var1+")"+"\n"
#-----
# Paste the code into a new python file. Then in Unix:'
# $ python x.py
#-----