我正在寻找一个正则表达式来查找较长的json反馈中的温度。我想在起居室温度和温度“ xx”之后找到2位数字的字符串,其中xx是2位数字的温度。部分数据文件复制到下面以获取信息。
约翰
1536432911.1003, oseq = 0},}" }, { "name": "Living Room Lamp", "altid": "28", "id": 67, "category": 3, "subcategory": 0, "room": 9, "parent": 1, "watts": "21", "status": "1", "kwh": "0.2174", "state": -1, "comment": "" }, { "name": "Living Room Light", "altid": "e3", "id": 18, "category": 18, "subcategory": 0, "room": 12, "parent": 12, "light": "52" }, { "name": "Living Room Lights", "altid": "15", "id": 28, "category": 2, "subcategory": 0, "room": 9, "parent": 1, "status": "0", "level": "0", "tripped": "0", "lasttrip": "1528355695", "armed": "0", "state": -1, "comment": "" }, { "name": "Living Room Temperature", "altid": "e1", "id": 17, "category": 17, "subcategory": 0, "room": 12, "parent": 12, "temperature": "21" }, { "name": "Low Temperature", "altid": "Weather-Forecast-LowTemperature", "id": 58, "category": 17, "subcategory": 0, "room": 14, "parent": 56, "temperature": "12" }, { "name": "LR Motion", "altid": "9", "id": 12, "category": 4, "subcategory": 3, "room": 12, "parent": 1, "armed": "1", "batterylevel": "100", "status": "0", "light": "52", "temperature": "21", "state": -1, "comment": "", "tripped": "0", "lasttrip": "1536432916" }, { "name": "M Bedroom Light", "altid": "e3", "id": 16, "category": 18, "subcategory": 0, "room": 4, "parent": 14, "light": "12" }, { "name": "M Bedroom Motion", "altid": "11", "id": 14, "category": 4, "subcategory": 3, "room": 4, "parent": 1, "armed": "1", "batterylevel": "100", "temperature": "21", "status": "1", "light": "12", "tripped": "0", "lasttrip": "1536431443", "state": -1, "comment": "" }, { "name": "M Bedroom Temperature", "altid": "e1", "id": 15,