Your question was closed as 'too localized' because as written, it only applied to your code and your specific situation.
One of the (many) things that differentiates Stack Overflow from other sites (and from those icky things called forums) is that every question on this site should be useful to future visitors. If they're not, they should be closed as too localized
.
Your question did not meet that standard, and thus was closed.
I don't agree with the closing, because I think the question could have been salvaged. Remember, though, the first person who should be making sure the question is in good shape is the person asking it. In this case, you.
Admittedly, your question had a few things wrong with it, all of which on their own would not have caused the question to be closed, but all together they become a little much to bear.
For instance:
Your closing sentence was,
"So, basically any 2 letter word"
You didn't take the care and effort to formulate the ending of your question. It's just sitting there. That can cause people to say, "If he's not going to put effort into his question, why should it stay open?"
Second, you didn't show your effort in the question. Your question had a plzsendtehcodez
feeling to it, and the community doesn't like those one bit.
When you were asked what you had tried, you never put it into the question. Clarifying points should always be added to the question. Comments are a bad medium for most things -- and clarifications are one of those things.
Finally, you lost your temper in the comments:
Closed as too localized?? Only because the examples are "NL" and "DE" instead of "US" and "CA"... The problem still remains the same, converting a string to an array. I think this topic can be very useful to people and DOES NOT need to closed!
And again:
@NikiC, Marc B, tereškom, Lucifer, Claus Jørgensen, closing this doesn't make sense! This question has NO localized content. It has NOTHING to do with any geographic area! This is a question about converting a string to an array, nothing more, nothing less. It might be good for your reputation to downvote valid questions, but people will miss out on good answers to serious, NON LOCALIZED questions!
All caps and exclamation points aren't generally signs that you're a happy-go-lucky guy. Rather, they tend to point towards someone who is none-too-happy about their situation. I get that, but it doesn't endear others to see things your way.
I've edited your question to give it a chance to stay re-opened. If it gets closed again, there's not much I can do.
In the future, your best bet is to take great care in asking questions. The more care you take in asking them, the more likely people will answer them with that same level of care.
too localized
. That's not the only reason a question can betoo localized
. Don't get hung up on the location part. It would have been closed no matter what two letters you used in the code -- country locations or not!