Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆ to Programmer [email protected]English • 5 months ago

what debugging regex feels like

lemmy.ml

message-square
10
fedilink
  • cross-posted to:
  • [email protected]
144

what debugging regex feels like

lemmy.ml

☆ Yσɠƚԋσʂ ☆ to Programmer [email protected]English • 5 months ago
message-square
10
fedilink
  • cross-posted to:
  • [email protected]
alert-triangle
You must log in or register to comment.
  • Einar
    link
    fedilink
    14•5 months ago

    In case you don’t know this one yet:

    https://regexr.com/

    • ☆ Yσɠƚԋσʂ ☆OP
      link
      fedilink
      8•5 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

  • @[email protected]
    link
    fedilink
    English
    7•
    edit-2
    5 months ago

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

    • @[email protected]
      link
      fedilink
      7•
      edit-2
      5 months ago

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

      Insert obligatory \\\\\\\\Xzibit

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

    Now you’ve got 𒐂 problems.

  • TimeSquirrel
    link
    fedilink
    4•5 months ago

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

    • Ephera
      link
      fedilink
      English
      4•5 months ago

      Those regex crosswords ain’t gonna solve themselves…

    • @[email protected]
      link
      fedilink
      10•5 months ago

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

      • @[email protected]
        link
        fedilink
        English
        3•5 months ago

        I think I understand half of that without looking it up

        • @[email protected]
          link
          fedilink
          3•5 months ago

          Warlock! Burn them!

      • @[email protected]
        link
        fedilink
        2•
        edit-2
        1 month ago

        deleted by creator

Programmer [email protected]

[email protected]
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.
  • 1 user / day
  • 60 users / week
  • 366 users / month
  • 1.54K users / 6 months
  • 4 subscribers
  • 1.82K Posts
  • 38.6K Comments
  • Modlog
  • mods:
  • @[email protected]
  • @[email protected]
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org