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

83
83 comments
You've viewed 83 comments.