Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-01-20 16:03
Flavor·ECMAScript (JavaScript)

/
\/\*.*?\*\/|(\/\/.*)
/
gi
Open regex in editor

Description

Strip comments with /* ... */ or // ...

Submitted by Willy