^.?$|^(..+?)\1+$
<answer>
Matches strings of any character repeated a non-prime number of times
You are viewing a single thread.
View all comments -23 points
Hot take: You’re shit at coding if you can’t do regex.
19 points
*
0 points
3 points
And then a few more any time you actually want to use it.
And then double it each time you have to decipher the existing one
Just don’t use regex unless there is really no other way, and when you absolutely have to - frankly, that’s one of the ultra rare occasions I recommend using the AI.
11 points
6 points
13 points
12 points