I have the following code stored as a string variable in Python. How can I use regex, along with re.findall('', text)
, to parse out the five 9-digit numbers (all starting with "305...") under "attributeLookup" lookup in the below code?
var PRO_META_JSON = {
"attributeDefinition":{
"defaultSku":305557121,
"attributeListing":[{
"label":"Finish",
"defaultIndex":0,
"options":[
"White::f33b4086",
"Beige::8e0900fa",
"Blue::3c3a4707",
"Orange::1d8cb503",
"Spring Green::dd5e599a"
]
}],
"attributeLookup":[
[0,305557121],
[1,305557187],
[2,305557696],
[3,305557344],
[4,305696435]
]
}
};