Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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 */
 
PREVIOUS NEXT
Tagged: #regex #remove #css #comment
ADD COMMENT
Topic
Name
1+9 =