"""
Specifying a Regular Expresssion for the Shortest Match
"""
import re

str_pat = re.compile(r'\"(.*)\"') # attempting to match text enclosed inside quotes.
text1 = 'Computer says "no."'
print(str_pat.findall(text1))
text2 = 'Computer says "no." Phone says "yes."'
print(str_pat.findall(text2))
str_pat = re.compile(r'\"(.*?)\"')
print(str_pat.findall(text2))
