^.?$|^(..+?)\1+$
<answer>
Matches strings of any character repeated a non-prime number of times
You are viewing a single thread.
View all comments 17 points
Just waiting for the oppertunity to hide this in prod.
^.?$|^(..+?)\1+$
Matches strings of any character repeated a non-prime number of times
Just waiting for the oppertunity to hide this in prod.
Post funny things about programming here! (Or just rant about your favourite programming language.)
5.4K
Monthly active users
888
Posts
9K
Comments