^.?$|^(..+?)\1+$
<answer>
Matches strings of any character repeated a non-prime number of times
You must log in or register to comment.
Yeah but it’s just so tempting… It validates so many inputs so easily…
deleted by creator
Yeah, I’ve found myself wasting quite a lot of time thinking of the ‘perfect regex’ for task X only to realise that I could have avoided doing so by simply taking a different approach.