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?