JPDev@programming.dev to Software Gore@programming.dev · 2 years agoPassword must match the followingprogramming.devimagemessage-square28fedilinkarrow-up117arrow-down10
arrow-up117arrow-down1imagePassword must match the followingprogramming.devJPDev@programming.dev to Software Gore@programming.dev · 2 years agomessage-square28fedilink
minus-squaredrathvedro@lemm.eelinkfedilinkarrow-up1·2 years agoI 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.
minus-squareWilzax@lemmy.worldlinkfedilinkarrow-up1·2 years agoTechnically just needs a number or a special character, there’s a | between the lookaheads for numbers and special characters.
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.
Technically just needs a number or a special character, there’s a
|between the lookaheads for numbers and special characters.