Skip Navigation

Oh boy what a beautiful regex. I'm sure it does something logical and easy to understand.

^.?$|^(..+?)\1+$

<answer>

Matches strings of any character repeated a non-prime number of times

https://www.youtube.com/watch?v=5vbk0TwkokM

82
82 comments
You've viewed 82 comments.