• conditional_soup@lemm.ee
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    7 months ago

    Regex

    Edit: to everyone who responded, I use regex infrequently enough that the knowledge never really crystalizes. By the time I need it for this one thing again, I haven’t touched it in like a year.

    • Kissaki@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      You always forget regex syntax?

      I’ve always found it simple to understand and remember. Even over many years and decades, I’ve never had issues reading or writing simple regex syntax (excluding the flags and shorthands) even after long regex breaks.

    • kameecoding@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      7 months ago

      Most of regex is pretty basic and easy to learn, it’s the look ahead and look behind that are the killers imo

    • CrazyLikeGollum@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 months ago

      Or scripts for basically any other variant of the Bourne shell. They are, for the most part, very cross compatible.

      • Tinidril@midwest.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 months ago

        That’s the only reason I’ve ever done much of anything in shell script. As a network administrator I’ve worked many network appliances running on some flavor of Unix and the one language I can count on to be always available is bash. It has been well worth knowing for just that reason.

  • perishthethought@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    arrow-down
    1
    ·
    7 months ago

    I don’t normally say this, but the AI tools I’ve used to help me write bash were pretty much spot on.