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.
lmao
Suggesting for people to very carefully review this Rust translation.
There is a Regex crate for Rust in codewars, but that crate doesn't support "lookahead". That might sort of go against the challange of a oneliner Regex. You can still solve this with Regex, just no lookahead.
Thank Youuuuuuuuuuuuu very much :))))))
For 1 hour into regex, you're pretty close to the right one. This site can be useful: https://regex101.com/
it failed on 'NmIm5EQDNF7R1_ar', 'KFPYe// FrZvdu4o', 'Y AR2ECbjqCYKSJ' etc. too. Not sure whats wrong, I literally stated learning about regex from an 1 hour ago, looks like I need to learn more. O_o
*edit* nevermind I got the issue, btw thanks
Not a kata issue, your regex fails tests like this one:
And because it's failing random tests, the number of tests it fails is random too.
This comment is hidden because it contains spoiler information about the solution
I like your solution better