^.?$|^(..+?)\1+$
<answer>
Matches strings of any character repeated a non-prime number of times
1 point
*
\1 is group 1 which is inside ()
, so second part is repeated 2 or more times of 2 or more char.
^.?$|^(..+?)\1+$
Matches strings of any character repeated a non-prime number of times
\1 is group 1 which is inside ()
, so second part is repeated 2 or more times of 2 or more char.
Post funny things about programming here! (Or just rant about your favourite programming language.)
5.3K
Monthly active users
884
Posts
8.9K
Comments