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
/
^(?:(?:0*1(?:11)*(?:0+|$))+|0+)$
/
gm
Input 1
1
New
1001110111 10110111 1 11 111 1111 11111 01 0000 10101010 1110001010000 00000001 011101001110111110001111111 0111010011101111100011111111
Extraction
1001110111 10110111 1 11 111 1111 11111 01 0000 10101010 1110001010000 00000001 011101001110111110001111111 0111010011101111100011111111