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.
Not a suggestion ~~
Hey, thanks!
Take a look at these:
http://zetcode.com/lang/rubytutorial/regex/
https://www.blueboxcloud.com/insight/blog-article/using-regular-expressions-in-ruby-part-3-of-3
http://www.regular-expressions.info/
http://rubular.com/
http://regexcrossword.com/
Regex is a very powerful tool, learn it well and you will be able to solve many problems with that. Best wishes.
never seen something like this before, any resources where i can learn more about advance regex like this? thank you
Guys, look at my solution, it support "http://subdomain.domain.com" :)
Yup missed it! Seems the test didn't catch me. Will update it.
it also doesn't support "http://subdomain.domain.com". my solution doesn't either, but I was trying to write the minimal amount to pass the tests ;) because lazy
Is that a requirement?
this solution only supports 'http/https' protocols, and doesn't support other (ftp://, git:// ...)
I agree
Beautifully well written! and yes readability to the best!!! :)
Not until your Ruby is valid. Then, depending on the tests the kata submitter set, it'll give a different message.
Not sure using rescue for logic branching is recommended.
This uses two loops, it would be better to do the filtering inside the reduce/inject block.
any? is a better pattern than all?