/ Published in: Regular Expression

Matches CSS-style comments spanning one or multiple lines
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# This is how it would look using the Ruby Regexp class # Only match one-line comments Regexp.new(/\/\*.*?\*\//) # Match single and multi-line comments Regexp.new(/\/\*.*?\*\//m)
Comments
