Extract JSON object from html using PHP regex
问题 After reading all related threads i can not find anything that shows regex that is capable of extracting a full json object from within html content so im hoping someone can help me get the right regex to resolve the issue. For example the json im looking to extract looks like this: "taxonomy": {"page":"/products/1/","price":"350.00","country_code":"gb","brand":"apple"}, Im trying to extract the entire "taxonomy" object that is inside a java script function within the html. I have tried preg