^.?$|^(..+?)\1+$
<answer>
Matches strings of any character repeated a non-prime number of times
You must log in or register to comment.
“abbabba”
“abbabba” doesn’t match the original regex but “abbaabba” does
Good catch! Typo. Fixed.
^.?$|^(..+?)\1+$
Matches strings of any character repeated a non-prime number of times
“abbabba”
“abbabba” doesn’t match the original regex but “abbaabba” does
Good catch! Typo. Fixed.