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.
A masterpiece solution. You did it like a BO$$. Code Complete.
Holy! This is very good!
Does this work with empty string, a number, a string with number ex. "0" or "0a0" and all the falsy values?
If it does, why?
Its something to do with find only words of given. Toy aroumnd with it in regex101 to learn more. This cat has not forgot that in many exercises the job is to find something and replace it with something else.
I got to see what this regex does in regex101
😒show off!! 😢 my code is better
Smart! One good Regex, a string.prototype.replace and a callback, done! Love seeing these better approaches.
{4,} Quantifier — Matches between 4 and unlimited times, as many times as possible, giving back as needed (greedy)
can someone explain why there is {4,}, pls?
What a great solution. Definitely a learning experience for me, thank you!
Dude that is so cool! Thank you! 👏
Assuming you've already tried just learning it from documentation... XD
A good tool for helping you understand what's going on is Regexper. You just paste in regex code and it shows you a diagram of the logic flow. For example, this is the regex I used in the code: /[a-z]{4,}/gi in Regexper
regex is bich man. no matter how hard i try i never seem to understand how the heck it works.
Owww no way my spaghetti compared to yours 4 lines seems so stupid.
Nice this kata show me just how much more I need to learn.
Wow! That's some hardcore coding!
Still... you solved this challenge in a completely different way, and learned of other approaches. If you learned something in the process, then Achievement Unlocked! ^^
Loading more items...