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.
Note: If the input string contains no digits, this solution will return a 0, which might be unexpected behavior. By contrast,
parseInt()
and unary+
coercion will result inNaN
.Approved
python new test framework
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/189.
Please join the discussion to help us identify duplicate kata and retire them.
\d for digits! Thank you
Thanks so much! I did the most inefficient solution and had no idea this existed. I was reading all about 'regex' but still was coming up dry.
I passed the 420 test, great kata!
APPROVED BY SOMEONE
Swift translation kumited. Please check and approve
Fixed
(already approved, please fix the issues in the kata editor)
Python translation kumited -- please check and appprove
Haskell translation
Julia translation
Loading more items...