Answers for "regex remove css comment"

CSS
0

regex remove css comment

\/\*.+?\*\/
use the above expression to remove /* CSS comments */

<!--(.*?)-->
use the above expression to remove <!-- HTML comment -->

((?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:\/\/.*))
this one is a general expression to remove also //JS comment + /* CSS comment */
Posted by: Guest on April-07-2021

Browse Popular Code Answers by Language