The Enchanted Tavern
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 3 months ago

what debugging regex feels like

lemmy.ml

message-square
18
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
141

what debugging regex feels like

lemmy.ml

☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 3 months ago
message-square
18
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
alert-triangle
You must log in or register to comment.
  • Einar
    link
    fedilink
    14•3 months ago

    In case you don’t know this one yet:

    https://regexr.com/

    • ☆ Yσɠƚԋσʂ ☆OP
      link
      fedilink
      8•3 months ago

      Yeah there are a few tools like that. I actually like this approach myself, you write it in a human readable form and then it gets compiled into a regex https://github.com/cmccomb/human_regex

  • @Object@sh.itjust.works
    link
    fedilink
    English
    7•
    edit-2
    3 months ago

    Worse: Debugging regex that needs to be passed as a string\.

    • @xmunk@sh.itjust.works
      link
      fedilink
      7•
      edit-2
      3 months ago

      I herd u liek escape characters so I escaped your escaped your escaped your escape characters.

      Insert obligatory \\\\\\\\Xzibit

  • @Cysioland@lemmygrad.ml
    link
    fedilink
    1•3 months ago

    Just learn some computer science and regexes will suddenly start making sense

  • davel [he/him]
    link
    fedilink
    Eʋegbe
    4•
    edit-2
    3 months ago

    Now you’ve got 𒐂 problems.

  • TimeSquirrel
    link
    fedilink
    3•3 months ago

    You don’t use a regex generator/decoder? You actually tried to learn what that shit means??

    • @xmunk@sh.itjust.works
      link
      fedilink
      10•3 months ago

      Hey, there’s something magical about knowing what a negative look behind zero length assertion is.

      • @spooky2092@lemmy.blahaj.zone
        link
        fedilink
        English
        3•3 months ago

        I think I understand half of that without looking it up

        • @xmunk@sh.itjust.works
          link
          fedilink
          3•3 months ago

          Warlock! Burn them!

      • @CapriciousDay@lemmy.ml
        link
        fedilink
        2•3 months ago

        Would-be regex compiler writers wince as they realise they can’t just implement a FSA 😢

    • Ephera
      link
      fedilink
      English
      4•3 months ago

      Those regex crosswords ain’t gonna solve themselves…

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml
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: !programmerhumor@lemmy.ml

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.
  • 9 users / day
  • 39 users / week
  • 149 users / month
  • 1.65K users / 6 months
  • 1 subscriber
  • 1.58K Posts
  • 29.6K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org