5

(I'm asking specifically for advice on the linked question, so this isn't a duplicate of Can a question with an accepted answer be closed as unanswerable because that answers the question more generally.

I've read the similar questions to this meta-question. The general advice seems to be to make the question more specific, regardless of any answers given, but I can't see how to apply that in this case.)

I submitted this question as a Q&A on Stack Overflow because it took me some time to come up with the answer and I thought it might be useful to others. The question itself is quite brief, which I assume is the reason that it was closed as 'too broad'. But I fail to see how the question could have been made more specific without pre-empting the answer, or restricting the usefulness of the answer unnecessarily.

Can someone please tell me what else I should have included in the question to bring it up to the standard expected here at SO? (In case of doubt, the answer will show exactly what information was being sought, but obviously the question cannot include the answer or it would not be a question!)

For non-10K-ers:

enter image description here enter image description here

14
  • 5
    I agree it is too broad, accepted answer or no accepted answer. What if there was another answer added that gave you an entirely different approach? And a third? And then someone rehashes one of the approaches with another twist. And more. And more. Too broad does not mean unanswerable. It means there are too many possible answers. Commented Nov 10, 2014 at 10:04
  • @MartijnPieters what if the question would have an example text and an initial non-working regex?
    – rene
    Commented Nov 10, 2014 at 10:06
  • @rene: perhaps; it would at least narrow down the scope to 'help me fix my approach to the problem' rather than 'give me any approach to this problem'. Commented Nov 10, 2014 at 10:21
  • @MartijnPieters I wanted the an answer that would work with any RegEx, so giving a specific one in the question would have negated the point of the question entirely.
    – Ian Goldby
    Commented Nov 10, 2014 at 10:34
  • @MartijnPieters If the possibility of other answers makes a question inadmissible for SO then no Perl question would ever be accepted, because, you know, TMTOWTDI. Ok, tongue slightly in cheek there, but I'm sure you don't really mean that.
    – Ian Goldby
    Commented Nov 10, 2014 at 10:39
  • meta.stackexchange.com/questions/194476/…
    – gnat
    Commented Nov 10, 2014 at 10:40
  • @IanGoldby: Even the Perl syntax is limited enough that the number of viable answers is limited. Your class of questions is not. I know that you created a self-answer, but your question still needs to be able to pass the quality standards for the site on its own. Commented Nov 10, 2014 at 10:46
  • @MartijnPieters I understand the question has to stand alone. What I'm looking for here is suggestions to make the question meet SO's quality standards, without making it so specific that readers will think the answer I provided doesn't apply to their own circumstances?
    – Ian Goldby
    Commented Nov 10, 2014 at 10:50
  • Your title is misleading, that question doesn't have an accepted answer. (It might have an acceptable answer but that's a different issue.)
    – Mat
    Commented Nov 10, 2014 at 10:51
  • @Matt Not sure what happened there. I did accept the answer. Perhaps it lost the accepted flag when the question was deleted. (Perhaps this is something that happens with self-answered questions to make them easier to delete.)
    – Ian Goldby
    Commented Nov 10, 2014 at 10:53
  • @IanGoldby: plenty of good answers address the specific problem, then explain the generic solution to the problem in broader terms. Don't worry about making your question specific here. Commented Nov 10, 2014 at 10:59
  • @MartijnPieters Thanks for the advice. I suppose I was trying to create a kind of canonical Q&A. Maybe I'll resubmit it sometime with a very specific question. Kind of hard to invent a very specific question once you've got the general answer. Anyway, thanks.
    – Ian Goldby
    Commented Nov 10, 2014 at 11:06
  • 2
    @IanGoldby: take a look at this canonical q&a; the Python chat room created that one to address a very common Python beginners question. The question is specific, but the answer covers all the bases. Commented Nov 10, 2014 at 11:12
  • Not a dupe at all. Commented Nov 10, 2014 at 18:10

1 Answer 1

1

My interpretation of 'too broad' includes 'write this code for me'. That's essentially what this question is: write this regex for me. As such, i also would have closed it as too broad.

3
  • Does that mean that carrying this information (specifically the answer) is detrimental to the goals of SO? Yes, I know it was the question that was closed not the answer, but you can't post an answer without a question.
    – Ian Goldby
    Commented Nov 10, 2014 at 10:35
  • I can't see the answer, but it sounds like it provided a good solution. As you said, it's the question that was closed - not the answer. If the question had been "this regex isn't working", it might have been more on topic, and it would be a good answer.
    – Scimonster
    Commented Nov 10, 2014 at 10:37
  • I think the bunch of "this regex isn't working" questions on SO are mostly useless and even duplicated, and I'd love to burn most of them to smithereens. On the contrary, OP's question is interesting, but it is hard to ask, since it is on the level of a "task with regex" instead of specific input or output.
    – nhahtdh
    Commented Nov 10, 2014 at 11:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .