0

If I have this text blob

"merchants":[{"name":"Berlins - Venice","description":"LA\'s Most 
 Authentic German Döner Experience.","should_show_ajax_etas":true,"id":3916
,"fulfillment_types_allowed":["DELIVERY"],,"name":"Clutch CaliMex",
"description":"Northern Mexican Cuisine."name":"LocaliVenice",
"description":"If 7-Eleven and Whole Foods Had A Love 
Child...","should_show_ajax_etas":true,"id":1743

I am trying to parse the name value between the quotes. So in case, I am trying to return Berlins - Venice, Clutch CaliMex, and LocaliVenice. This is the regex that I am using on regex101

regex = re.compile(r'?<=\"name\":\")(.*)(?=\"description\"').

which is mostly inspired by here

However, it appears to return EVERYTHING from Berlins to the very last instance of description even though there are two more instances of description in the text blob.

Berlins - Venice","description"..(truncated).."name":"Locali Venice",

Again, I only need the name of the restaurants in between the quotes

Minh
  • 2,180
  • 5
  • 23
  • 50

0 Answers0