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.
Interesting and clever approach in my humble opinion, but 'var' declaration is also a little bit important I think. ;-)
In addition as for used regular expression - it's not necessary to use caption groups here in alternatives, also in the first parameter in the callback we get the whole match instead of caption group. You can simply verify it.
after seeing this solution I think I understand regex a bit more. Very clever.