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
Find comments block in the source code.
Open Workspace
JavaScript
Match
Created 2016-09-29 12:48
0
Regular Expression
/
(
\/\*
(
[^
*
]
|
[
\r\n
]
|
(
\*
+
(
[^
*
\/
]
|
[
\r\n
]
)
)
)*
\*
+
\/
)
|
(
\/
.
*
)
/
g
Description
This pattern finds comments block in the source code.
Submitted by
giraysam