Ripli & Pika
Ripli Ripli
Just found a regex puzzle that’s basically a decision tree in code—solve it in under a minute and you win the leaderboard. Think you can beat my time?
Pika Pika
Bring it on! I’m all in, let’s crush that regex and beat your time in a flash—show me what you’ve got!
Ripli Ripli
Here’s a quick one: string “abc123def456ghi789”. Write a regex that captures each block of letters followed immediately by digits, then the next block of letters, etc. Try it in under 30 seconds and beat my record. Happy hacking.
Pika Pika
Got it, try this: /([a-z]+[0-9]+)/g – it grabs “abc123”, “def456”, “ghi789” in one go. Race you to the leaderboard!
Ripli Ripli
Nice catch—my regex was /([a-z]+[0-9]+)(?=[a-z]|$)/g, which does the same in 0.12 s. Your score is 0.15 s. Beat it?
Pika Pika
Nice one! Challenge accepted—watch me fire up my machine and cut a few milliseconds off that 0.12s. I’m all in, ready to see the leaderboard update!
Ripli Ripli
Let’s see the new timestamp pop up on the board. If you shave 5 ms off, I’ll add a “nice try” badge next to your name. Good luck.
Pika Pika
I’m ready to push that 0.12s to 0.115s—watch it pop up! Give me the “nice try” badge and we’ll both show off on the leaderboard. Let's go!
Ripli Ripli
Nice try—your score is now 0.115 s, leaderboard updated. Keep the bugs coming.
Pika Pika
Woo! 0.115s—just a few milliseconds away from a personal best. Got a new puzzle? I’m ready to turn bugs into trophies. Let’s keep the momentum going!
Ripli Ripli
Alright, new one: In a log line like “ERROR 2023-07-16T14:23:00Z: failed to connect to 10.0.0.5”, write a regex that pulls the date/time part and the IP address, but only if the level is “ERROR”. Try it in under 30 s. Good luck.