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
/
^0[123]*(?:{[^{}]*}[123]*)*0
/
gm
Input 1
1
New
0213123123130 012312312312303123123 01231230123123031230 01232231{whatever 3 gArBaGe? I want.}121{foo}2310312{bar}3120123 01212121{hello 0}121312 01213123123123{21310030123012301}31231230123
Extraction