/ Published in: Regular Expression

It removes all standard C-style comments(/* 1-n */) and all single line comments("//"). Greedy matching.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(/\*([^*]|[ ]|(\*+([^*/]|[ ])))*\*+/)|(//.*)
Comments
