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

<answer>

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

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

It takes a couple of hours to learn the basics.

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.

You recommend using AI to produce code you don’t understand?

@ddplf@szmer.info
link
fedilink
-1
edit-2
6d

That I do, yes, because that’s a small chunk of code that - when necessary - would have to be completely remade anyways, not just modified.

That wouldn’t fly during a code review.

That’s your opinion my man

I’m not gonna continue using arguments if all you can respond with is cynicism, apparently I wasn’t wrong about the elitism part

Getting butthurt and personal over an offhand remark in a humour community is really toxic and you should probably work on that.

I trust that you can be better, my good buddy ❤

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
  • 82 users / day
  • 214 users / week
  • 415 users / month
  • 2.93K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog