Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

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

Description

This pattern finds comments block in the source code.

Submitted by giraysam - 8 years ago