I would like to extract a JSON string within another string.
Currently I am getting the full string using file_get_contents
and running the following pattern on the string: https://regex101.com/r/5jAucO/1
which pretty much gives multiple matches.
I would like to extract the JSON string that is saved in window._sharedData
but haven't been able to achieve that. Does someone have any idea how I could do that?