ProIT
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
NateNate60@lemmy.world to Programmer Humor@lemmy.ml ·
edit-2
6 months ago

Oh boy what a beautiful regex. I'm sure it does something logical and easy to understand.

lemmy.world

external-link
message-square
83
link
fedilink
339
external-link

Oh boy what a beautiful regex. I'm sure it does something logical and easy to understand.

lemmy.world

NateNate60@lemmy.world to Programmer Humor@lemmy.ml ·
edit-2
6 months ago
message-square
83
link
fedilink

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

<answer>

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

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

  • Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    41
    ·
    6 months ago

    knowing Matt Parker it only matches prime numbers or multiples of e or something.

    looks at <ansewer>

    Yeah see?

    • frigidaphelion@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      6 months ago

      Matt Parker will destroy us all! (https://youtu.be/GyNbLtiAgj4?si=r77Ef7wm9EZ83T6J)

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

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.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 114 users / day
  • 528 users / week
  • 1.74K users / month
  • 10.6K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.71K Posts
  • 38K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org