How would I write regex to get the json out of this HTML script tag?
So I have this text that I extracted out of a <script> tag. function fbq_w123456as() { fbq('track', 'AddToCart', { contents: [ { 'id': '123456', 'quantity': '', 'item_price':69.99 } ], content_name: 'Stackoverflow', content_category: '', content_ids: ['w123456as'], content_type: 'product', value: 420.69, currency:…