^.?$|^(..+?)\1+$
<answer>
Matches strings of any character repeated a non-prime number of times
You must log in or register to comment.
I thought, the +? was going to be a syntax error. 🙃
I was like, why specify “one or more” and then make it optional? Isn’t that just .*?