Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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! :)
Why would this be best practice? Would be pretty hard for another programmer to catch on the fly...