Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\/\*[\s\S]*?\*\/
/
g

Description

This regexp removes comments from css (text/css) files (multiline)

Submitted by Ray (alrays@yandex.ru) - 10 years ago