0

Code I have:

Click here to see the code

I want to get between (including) the first curly braces to the last (including):

<html lang=3D"pl-US"> <head> </head> <body> <div>  <script data-scope=3D"in=
boxmarkup" type=3D"application/json">{
  "api_version": "1.0",
  "publisher": {
    "api_key": "61d9",
    "name": "Google Alerts"
  },
  "entity": {
    "external_key": "Google Alert - Adidas"
  },
  "updates": {
    "snippets": [ {
      "icon": "BOOKMARK",
      "message": "lala (Nike)"
    } ]
  },
  "cards": [ {
    "title": "Google Alert - Adidas",
    "subtitle": "Nike and Adidas",
    "actions": [ {
      "name": "Sam",
      "url": "https://www.google.com"} ],
    "widgets": [ {
      "type": "LINK",
      "title": "lala (Nike)"
    } ]
  } ]
}
</script> <!--[if mso]>
 <table><tr><td width=3D650>
<![endif]-->

When I use \{([^()]|())*\}, it returns me weird one that doesn't include all (shown in the code). The plan is to parse the data and use as JSON.

I only need everything between (including) first occurrence of { and last occurrence of }.

AmazingDayToday
  • 3,724
  • 14
  • 35
  • 67

0 Answers0