I'm not going to give you the solution, you must make your function have the same behaviour as built-in split, try and see.
And if delimiter is empty...
Expected an error when empty delimiter!
What it says?
My code passes all the test cases except this....
This only works in python 2
This comment is hidden because it contains spoiler information about the solution
I Didn't know you could do that! Thanks for the solution;)
I don't understand what the @classmethod decorator does. can i see this somewhere?
strip() removes only first space
(WUB)+ replace all inline WUB with one space
As I said in the 1-st kata in this series, you shouldn't write semicolons at the end of the lines of code in Python.
Actually, you don't need a semicolon (;) after "pass" keyword in the template solution. We don't use semicolons at the end of the line of code in Python.
pay attention to the + in the regex
Yes, especially if the function was called in a loop!