Oh boy what a beautiful regex. I'm sure it does something logical and easy to understand.
from NateNate60@lemmy.world to programmerhumor@lemmy.ml on 31 Oct 2024 02:43
https://lemmy.world/post/21463665
from NateNate60@lemmy.world to programmerhumor@lemmy.ml on 31 Oct 2024 02:43
https://lemmy.world/post/21463665
^.?$|^(…+?)\1+$
<answer>
Matches strings of any character repeated a non-prime number of times
www.youtube.com/watch?v=5vbk0TwkokM
threaded - newest