Regular Expressions 101

Find comments block in the source code.

Open Workspace
  • JavaScript
  • Match
0

Regular Expression

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

Description

This pattern finds comments block in the source code.

Submitted by giraysam