^.?$|^(..+?)\1+$

<answer>

Matches strings of any character repeated a non-prime number of times

https://www.youtube.com/watch?v=5vbk0TwkokM

@fubo@lemmy.world
link
fedilink
18
edit-2
5d

Whatever you do, don’t get in a time machine back to 1998 and become a Unix sysadmin.

(Though we didn’t have CL-PPCRE then. It’s really the best thing that ever happened to regex.)

@ikidd@lemmy.world
link
fedilink
English
24d

I was a sysadmin with some Linux usage in 1998, does that count?

I have to admit that using CL-PPCRE does not really help me understanding the regexp any better. But this may be because I deal with complex regexps for decades now, and I just read them.

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 77 users / day
  • 211 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog