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.
omg
cool
woow
Good use of Regex!!
Well I certainly over complicated this.
Who would have thought to hardcode the odd digits.... LOL.
This finds all the duplicate dashes in the string and replaces it with a single dash, it should match with '--'.
what does the regex /--+/g match with? I tried it on regex tester and it doesnt seem to match with anything.
How does the $1 get applied to every single odd integer? I thought it just applies to the first instance of an odd integer.