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.
This is something called regex which is a handy string manipulation module used in nearly all programming languages (Python, JavaScript, Java, C++ etc). It's very useful and I recommend learning it in the future. If you scroll down to the other comments you can see some information about this solution, and a step by step working of it from
@bkaes
.This comment is hidden because it contains spoiler information about the solution
Great explanation, trying to learn regex as well, could you explain '$1 ' as well? I've seen some explanations but I am not fully sure how to interpret and your prior explanation cleared things up for the first part of the statement. Thanks!
Great explanation, trying to learn regex as well, could you explain '$1 ' as well? I've seen some explanations but I am not fully sure how to interpret and your prior explanation cleared things up for the first part of the statement. Thanks!
Cool!
regexr is a good site to practice on. It has all the regexr's for javascript including $.
@sensir: In any decent RegEx tutorial, for example ŧhe one on MDN.
Where can I get more info on that '$' at the end of the regex? I didn't know about that one and I don't seem to find it.
%1 approach measured 4-7x faster.