Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
JavaScript semicolon adder
Open Workspace
JavaScript
Substitution
Created 2021-09-16 19:48
2
Regular Expression
/
(?<!
[
;
\{\}
]
|
\*\/
|
\s
*
\/
{2}
.
*?
)
$
/
gm
Description
This is a regex to use on JavaScript code that is missing semicolons
Submitted by
samunemeth