• Patches@sh.itjust.works
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    1 year ago

    Made that joke in an interview once.

    They didn’t think it was funny. They truly thought Regex was the solution to, but never the cause of, all problems.

    They wanted to make a Regex to verify every single address in the world. Dodged a bullet

    • rob64@startrek.website
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      1 year ago

      Holy hell yeah you did. How would you go about doing that in a single expression? A bunch of back references to figure out the country? What if that’s not included? Oy.

      • Patches@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        1 year ago

        You wouldn’t. It’s not possible. Which is what I told them.

        And why would you want to? Legally if you change the given address, and it fails to get delivered - that is on you. Not them.

        Some countries have addresses that are literally ‘Last house on the left by the Big Tree. Bumban(Neighborhood). NN (Country)’. Any US Centric validation would fail this but I assure you - mail gets delivered just fine.