Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
\:\s+\{(?P<data>[^\}]+)\}\,
"
gm
Input 1
1
New
{<"app name1">: {"reason": "all ok","upstreams": 1,"dialouts": {"idle": 40,"total": 40, "connecting": 0},}, <"app name2": { "reason": "all ok", "upstreams": 2, "dialouts": { "idle": 15, "total": 15, "connecting": 0 }, }, <"app name3": { "reason": "all ok", "upstreams": 2, "dialouts": { "idle": 15, "total": 15, "connecting": 0 }, }, ..... }
Extraction
{<"app name1">: {"reason": "all ok","upstreams": 1,"dialouts": {"idle": 40,"total": 40, "connecting": 0},}, <"app name2": { "reason": "all ok", "upstreams": 2, "dialouts": { "idle": 15, "total": 15, "connecting": 0 }, }, <"app name3": { "reason": "all ok", "upstreams": 2, "dialouts": { "idle": 15, "total": 15, "connecting": 0 }, }, ..... }