Let me put Oded's point in a different way...
Imagine yourself as a senior developer leading a team. One of the brand new hires walks over to your office and asks you what is the Regex for matching a number. Maybe you are feeling charitable and you give him the answer and go back to work.
Now imagine that new hire comes back to your desk 5 minutes later and says that Regex isn't working but provides no other details. So in order to solve his problem, you need to get up and walk over to his desk and look at his debugger to see why it isn't working.
And then he starts coming back to your desk every 15 minutes with a new problem, but fails to show he is making even the slightest effort to solve the problem himself before coming to you.
How would you feel after the 3rd or 4th interruption? Would you tell him to stop coming in until he asked better questions?
Think of asking a question on Stack Overflow as asking your senior developer for help.
- You don't really want to bother him/her unless you absolutely need to do it.
- And when you do, you want to show him/her that you have indeed tried to solve the problem yourself.
- And you want to provide him as much relevant information as possible in order to help him solve your problem without walking over to your desk.
This is why you were question banned. You kept walking over to your senior's desk and he finally told you to stop bugging him until you learn to ask better questions.
It's not about how basic or how complicated the question is. It is about the quality of the question. Did you completely explain the problem? Did you provide all of the relevant information, such as error messages, the input values, the expected output, what output you were getting? If you have code, did you provide a short snippet that reproduces the problem?
The way you earn your way back into good graces is you go back and tried to fix your past questions. Make them better, you will get some upvotes and you will eventually be able to ask again.