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 am trying to understand what's happening here.
(w*?@)
seems to be a short way of writingw.join('@')
.But what happens next escapes me still. Especially I do not understand the regex and how that plays together with gsub.
Apparently (I didn't know the syntax either) ? can be used to create literal strings of length one.
E.g.
I guess this was just shorter than
"."
^^