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.
Python fork
'34 567890'
one is unclear on its correctness, and the author solution disagrees with the issue on how it should be handled).No random tests
Python tests beyond busted.
I spent a full day on it, but when it finally worked, it gave me pure satisfaction. Great kata!
I'm confused about what our function is supposed to return -- phone numbers that are valid or the regex pattern used to match them?
Looks like there are not enough tests for the numbers that start with region code.
Namely, '0034 567890' and '34 567890' should not yield a match.
Most of the published solutions fail on these examples.
hkmt and friends are the only ones who nailed it. All glory to them!
' 034 567890' (with a leading space) probably should yield a match (there were tests with a leading space before the country code that were supposed to yeald a match).
This one fails for all published solutions. Including mine :)
Also, some of the published solutions fail on '0012 34 567890'.
How on earth could they be submitted in the first place?
Helral - bruh - how do you sleep at night.
This was amazing - thank you.
I thought - prior to today - that I was getting good at regex.
Thanks.
The first one has 5 digits instead of 6, and the other has only two digits and no leading 0:
Why '67890' and '04 567890' should not be a match? These phone numbers seem to be valid according to the instructions.
I must admit this was a bit sadistic :)
Updated the description to mention this
great kata
There should be tests with nation code but no area code.
There's a comment about this buried somewhere below, I'll state it explicitly because the description doesn't:
The local number has to be exactly 6 digits long.
Loading more items...