Here's a regex to actually match such a comment (will be in Regexp::Common version 0.03).
(?:#|-- )[^\n]*\n|/\*(?:(?>[^*;"']+)|"[^"]*"|'[^']*'|\*(?!/))*(?:;|\*/ +)
In reply to MySQL comments. by Abigail-II
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |