^.?$|^(..+?)\1+$
<answer>
Matches strings of any character repeated a non-prime number of times
You must log in or register to comment.
It matches for non-primes and doesn’t match for primes.
^.?$|^(..+?)\1+$
Matches strings of any character repeated a non-prime number of times
It matches for non-primes and doesn’t match for primes.