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

You're viewing a single thread.

83 comments
83 comments