You won't believe this: regex suffers from low-quality questions.
First, as you may know, there are several regex flavors in use. The flavor can impact available features, valid syntax or much more obscure subtleties.
Except for trivial regex questions (which are probably low-quality anyway), knowledge of the flavor is mandatory to answer the question properly. Unfortunately, people asking regex questions often aren't aware of this or think the language is irrelevant.
Then, several examples are needed. If you want good answers, you have to provide some input text that should match, and also some text that shouldn't. And describe the expected behavior clearly.
And, of course, when asking a question, you have to provide the pattern you've tried unless you want to earn some downvotes for not showing your effort.
This reminds me of the issues faced in the sql tag. Take a look at this and see how well it maps to the problems I pointed out above:
I'd like to see something similar for regex, as I believe some tips can raise the overall questions' quality.
Here's an attempt at writing such a message, but I'm not a native English speaker so better wording is welcome:
Regex questions get better answers if they...
- Include a tag for one specific flavor or language (Perl, PCRE, C#, Java, JavaScript, Python, etc...)
- Show the pattern that isn't working
- Provide some examples of input text that should match, and also ones that shouldn't
- Describe exactly how the pattern isn't working as expected, and the desired results
tag wiki
ortag wiki excerpt
there should be aasking hint
which can be edited/created like a tag wiki or so?!