I have some html code, which also includes a javascript tag and some json inside.
The json object looks like this:
var data = {"service_notice":"111111-aa-bb-222222"}
I would like to extract the value for service_notice. How can this be done with regex?
I am also concerned that it could be formatted slightly differently:
var data = {"service_notice" : "111111-aa-bb-222222"}
or
var data = {
"service_notice" :
"111111-aa-bb-222222" }