D•Scribe
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 5 个月前

what debugging regex feels like

lemmy.ml

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

what debugging regex feels like

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 5 个月前
message-square
11
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
alert-triangle
You must log in or # to comment.
  • Einar@lemm.ee
    link
    fedilink
    arrow-up
    14
    ·
    5 个月前

    In case you don’t know this one yet:

    https://regexr.com/

    • ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      arrow-up
      8
      ·
      5 个月前

      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
    arrow-up
    7
    ·
    edit-2
    5 个月前

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

    • xmunk@sh.itjust.works
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      5 个月前

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

      Insert obligatory \\\\\\\\Xzibit

  • davel@lemmy.ml
    link
    fedilink
    Eʋegbe
    arrow-up
    4
    ·
    edit-2
    5 个月前

    Now you’ve got 𒐂 problems.

  • TimeSquirrel@kbin.melroy.org
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    5 个月前

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

    • xmunk@sh.itjust.works
      link
      fedilink
      arrow-up
      10
      ·
      5 个月前

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

      • spooky2092@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 个月前

        I think I understand half of that without looking it up

        • xmunk@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          ·
          5 个月前

          Warlock! Burn them!

      • CapriciousDay@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        2 个月前

        deleted by creator

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      ·
      5 个月前

      Those regex crosswords ain’t gonna solve themselves…

  • Cysio@lemmygrad.ml
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    5 个月前

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

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

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

  • 65 users / day
  • 612 users / week
  • 2.68K users / month
  • 9.77K users / 6 months
  • 9 local subscribers
  • 37.1K subscribers
  • 1.51K Posts
  • 22.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org