Published on January 6, 2010 by Andrew Sledge in Quick Tips
Cleaning up the comments in a SQL file, specifically after using mysqldump.
:%s/^--[a-zA-Z0-9\`\ \_]*$\n//g
Name
Email address
URL
Comment
If you enter anything in this field your comment will be treated as spam