it's just a way to check the common elements between two sets: old groups the player plaied in and the new group. The only common element must be the player itself
wow. this looks dense and complex
I followed the same logic, but couldn't even begin to dream to produce something like this.
Good question! I think it's because it introduces the re.VERBOSE flag (to some) and because it's a relatively old solution (>3 years). I agree with you that it has too many problems to be best practice.
Just found another problem in addition to those below: . isn't escaped in the patterns, so wwwzexamplezcom will pass. Oops.
How do people vote this as Best Practice???
When calling decrypt("This is a test!", 1), it outputs " Tah itse sits!", but the output should be "hsi etTi sats!".
This comment is hidden because it contains spoiler information about the solution
Criticism aside this is a very pretty regex.
You can refactor your solution, go to solutions in your profile and then search the kata, when found click refactor if possible.
but you can fork the current solution, to make some changes.
Nope, that'll just create another solution. :/
Back when I submitted this I didn't even know one could complete a kata without submitting it, so I submitted all my solutions.
Oh, first time i got a reply! And from a 1kyu rank!
You can't change the solution by retrying the kata?
1st: Not pretty solution.
2nd: Doesnt work with urls like:
IDK how did this answer pass the tests.