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
JS comments
Open Workspace
PCRE (Legacy)
Match
Created 2018-03-08 12:25
0
Regular Expression
/
(
\r
|
\n
){2,}(
(
\s
*
\/\*
\s
*
\W
*
\w.
+
\s
*
\*\/
\s
*
)
|
(
\s
*
\/\/
\s
*
\W
*
\w.
+
\s
*
)
)(
\r
|
\n
){2,}
/
g
Description
Match all JS comments which are having >=2 Carriage return(\r) or Line feed(\n) at start and end.
Submitted by
kaalavan