• FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    We use it for triaging test failure (running tens of thousands of tests for CPU design verification).

    That use is acceptable because it is purely informational. In general you should avoid regexes at all costs. They’re difficult to read, and easy to get wrong. Generally they are a very big red flag.

    Unfortunately they tend to get used where they shouldn’t due to lazy developers not parsing things properly.

    • Dropkick3038@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      4 months ago

      regexes are a well established solution for parsing strings. what exactly is the “proper” alternative you propose?