import re
text = '"dimensionsDisplay" : ["Size","Color"], '
r = '"dimensionsDisplay" :(.*)?,'
s = re.search(r,text)
print s.group(1)
the output is :
' ["Size","Color"]'
Although it is the answer what I want , but I think it's should be:
' ["Size",'
I am puzzled about this. Is there anybody tell my why ?