
Untitled
By: a guest on
Apr 28th, 2012 | syntax:
None | size: 0.69 KB | hits: 14 | expires: Never
Please explain regex that finds css comments
/*[^*]**+([^/*][^*]**+)*/
/*.**/
+([^/*][^*]**+)*
/ <- an escaped '/', matches '/'
* <- an escaped '*', matches '*'
[^*]* <- a negated character class with quantifier, matches anything but '*' zero or more times
*+ <- an escaped '*' with quantifier, matches '*' once or more
( <- beginning of group
[^/*] <- negated character class, matches anything but '/' or '*' once
[^*]* <- negated character class with quantifier, matches anything but '*' zero or more times
*+ <- escaped '*' with quantifier, matches '*' once or more
)* <- end of group with quantifier, matches group zero or more times
/ <- an escaped '/', matches '/'