Ad
  • Custom User Avatar

    I'm sorry, but this solution is one line array filter by testing against very simple regex match. Can't get much better than that.
    The fact that some programmers can't cope with regex is sad as this is very important part of coding, and it's really not that hard.
    So, in my opinion this solution is much more readable than some 30+ line solutions and i suggest you all start learning regex fast! :)