there's no need to use regexp, you can make use of Python's basic string manipulation methods
eg ( tested only on that string)
Code:
s="""MYVAR("AA","BB","CC")*1.12345*BVAR("DD","CC","EE") * 2"""
while 1:
try:
ind = s.index('"')
s=s[ind+1:]
end = s.index('"')
print s[:end]
s=s[end+1:]
except: break
output:
Code:
# ./test.py
AA
BB
CC
DD
CC
EE
however, if you are bent on using regexp
Code:
import re
pat = re.compile('"(.*?)"')
s="""MYVAR("AA","BB","CC")*1.12345*BVAR("DD","CC","EE") * 2"""
print pat.findall(s)
output:
Code:
# ./test.py
['AA', 'BB', 'CC', 'DD', 'CC', 'EE']