Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
{[^{}]*'[xyz]_acc'[^{}]*}
"
gm
Input 1
1
New
{'device_id': 'M123'} {'x_acc': 0.00, 'y_acc' : 0.01, 'z_acc' : 1.02} {'device_id': 'S123'}
Substitution