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 comment is hidden because it contains spoiler information about the solution
Stylish
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
One'd better blame the kata set up, which does not enforce the use of regex, than the warriors who solved it. Worst of all: this kata is available in Haskell, a language that has no regular expressions implemented natively :D
@zebulan who hurt you so badly?
Argumentum ad populum. Nuff said.
Most likely? As determined by who? You are just making up 'rules' as you go.
You are entitled to your opinion but I disagree with it. There is no reason to use regular expressions in such a simple kata. You are more than welcome to use a regular expression if you want to but trying to tell other people what they can and cannot do seems very arrogant to me. I have no issue using a regular expression when it is necessary. After looking at the problem, I made a determination that it was not needed.
Let's look at the votes from other code warriors who seem to agree with my approach:
By the way, compiling your regular expression each time you call your function is most likely not the best approach.
There's probably a way to solve any regex scenario without the use of regex, but when the title of a problem has the word regex in it, it most likely means you should try and use regex to solve it.
That's an interesting opinion but at the end of the day, it's just an opinion. The katas own description doesn't seem to agree with you.
This is such a trivial kata that there doesn't seem to be any reason to use regular expressions. Using a regular expression for finding a single lowercase character seems like overkill to me. If you take the time to look through most of the other solutions, they seem to be thinking the same thing. There are many times when regular expressions are the right tool for the job. This kata does not seem like one of them.
Yes because of the title, it wouldn't say "Regex" anything it that wasn't the case
What makes you think that? Because of the title? Maybe you should read the description again.
My solution (along with ExoHyb) counts the total number of lowercase letters in a string.
Where exactly does it say to only use regular expressions?
you're supposed to use regex for this kata