Nuke comments: /\*[ -~\n]+?\*/|//[^\n]* then do: \n *\n+ replace into \n until there's no match left