• drathvedro@lemm.ee
    link
    fedilink
    arrow-up
    18
    ·
    5 months 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
      6
      ·
      5 months ago

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