• drathvedro@lemm.ee
    link
    fedilink
    arrow-up
    17
    ·
    6 days ago

    I know regex!

    This means:

    • Must not contain whitespace

    • Must contain lowercase latin letter

    • Must contain uppercase latin letter

    • Must contain a number

    • Must contain one of the symbols you’d normally be able to type on US keyboard !@#$%^&*()-=_+[\]{}|;:,./<>?

    It is a cursed way to do validation, though.

    • Wilzax@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      6 days ago

      Technically just needs a number or a special character, there’s a | between the lookaheads for numbers and special characters.