Regular Expressions 101

Community Patterns

Find comments block in the source code.

0

Regular Expression
ECMAScript (JavaScript)

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

Description

This pattern finds comments block in the source code.

Submitted by giraysam - 7 years ago