• pmk@piefed.ca
      link
      fedilink
      English
      arrow-up
      12
      ·
      5 months ago

      To make things even more fun, regex differs in subtly different ways, the regex that works in perl might not work in sed. There are two main dialects, BRE and ERE, and lots of tool specific additions. So I find myself wondering if grep is using extended regular expressions, or is that in egrep, or is egrep the standard grep nowadays? One time I saw Russ Cox use Acme, and I saw the real power of regex when used by someone intuitively. But I am no Russ Cox.

      • Randelung@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        5 months ago

        And then you might have to escape every escape character because it needs to go into a string first, making everything even more complex.

      • Skullgrid@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        5 months ago

        There are two main dialects, BRE and ERE, and lots of tool specific additions.

        fuck

    • DaGeek247@fedia.io
      link
      fedilink
      arrow-up
      5
      ·
      5 months ago

      I’d learn regex, but it looks like the kind of tool that programmers would shove into every single search function hole and expect everyone to know it even though it makes no sense for it to be there.

      • da_cow (she/her)@feddit.org
        link
        fedilink
        English
        arrow-up
        4
        ·
        5 months ago

        You can do surprisingly mich with just regex, but often enough there are better tools for a certain task. However if you want to do anything with bash, you will See Quite a lot of regex.

    • spujb@lemmy.cafeOP
      link
      fedilink
      English
      arrow-up
      20
      ·
      5 months ago

      this is actually the more common usage of this memetic form for a few years now, kind of for subversion and ironic effect. im with you, in other words. im making fun of the person in the last panel. :P

  • raman_klogius@ani.social
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    5 months ago

    I hate that browser search had no native regex, and all the regex find extensions* are trash.

    * what’s available on amo, Im not using chromium based browser.

  • plutopos@lemmy.zip
    link
    fedilink
    English
    arrow-up
    5
    ·
    5 months ago

    “You use AI because you think it’s the future; I use it because I can’t learn regex to save my life. We are not the same”

  • Zweieck@feddit.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 months ago

    I am literally doing step 3 at my work today. By now I somewhat understand the structure, but there is no time to really learn it myself

    • spujb@lemmy.cafeOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      My thesis has always been that AI should serve human labor, not replace it. Regex is a perfect example of that I think, because no one was ever hiring “regex technicians” we were just slogging through it ourself.

      But instead we have genAI taking artists’ and writers’ jobs while the wealth gap keeps growing… models and actors swapped with community-destroying data centers churning slopvertisements.

      Yeah, I will always be a proud Luddite.

  • Another Catgirl@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 months ago

    email the company whose devs intercept ctrl+f and replace it with a useless dud functionality, complain about it (but they have a captive market so no point)

  • Fmstrat@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    I would consider myself an expert at regex, having built pre-parsers for medical data and classification taxonomies.

    LLMs are bad at regex. You will think it works, but you will learn in a bug report it doesn’t.

    • spujb@lemmy.cafeOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      good to know! i readily admit my regex skills are low-amateur at best