I recently had a small problem to solve, googled and found a solution. Since the question was out of Stack websites, I thought I would post it already with an answer, and so I did it:
Replace any number of spaces using regular expressions
However I got a downvote. I can only guess, but it wasn't for lack of clarity or quality, it must have been for lack of research. But I did post an answer so the research was there. So, I assume, the downvoter saw the question, thought it was trivial or that I was asking people's help without doing any effort, and downvoted it.
So my question is: Shouldn't question posted together with an answer somehow protected from downvotes, at least by putting a clear marker like
This question was intended for documentation purpose. The author has already provided an answer to the problem. Read about self-answered questions. You are welcome to submit alternative answers!