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
/
^if +\([^{]*\)(?= *\{)
/
gm
Input 1
New
if (bla === 3) { } if ((((ol === 1 || (true))))) {} if ((1 === 4) (this === 9)) {}