Regular Expressions 101

Library entries

Find comments block in the source code.

Vote

0

Regular Expression
javascript

/
(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(\/.*)
/
g

Description

Loading markdown...
Submitted by giraysam - 5 years ago