Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
\/\*.*?\*\/|(\/\/.*)
/
gi

Description

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

Submitted by Willy - 9 years ago