• ryathal@sh.itjust.works
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    2 years ago

    If you know even a little about how an LLM works it’s obvious why regex is basically impossible for it. I suspect perl has similar problems, but no one is capable of actually validating that.

    • Ignotum@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      What do you mean it’s impossible for it? I know how LLMs work but I don’t know if any such limitations

      Write me a regex that matches a letter repeated four times, followed by a 3 or 4 digit number

      Here’s your regex: ([a-zA-Z])\1{3}\d{3,4}