CSS Comment Regular Expression

A regular expression to match CSS Comments within your document.

/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//

Matches:

  • /* comment */

Non-matches:

  • <!– HTML comment –>
  • // JavaScript comment

See Also: