regex remove css comment

Solutions on MaxInterview for regex remove css comment by the best coders in the world

showing results for - "regex remove css comment"
Santiago
14 Oct 2018
1\/\*.+?\*\/
2use the above expression to remove /* CSS comments */
3
4<!--(.*?)-->
5use the above expression to remove <!-- HTML comment -->
6
7((?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:\/\/.*))
8this one is a general expression to remove also //JS comment + /* CSS comment */
9