Strip all comments using regex

You might find yourself wanting to remove all comments from a document. For what ever reason. Here’s the regex to do that.

<!--[^\[](.*?)-->