Regex for Validating Password

2019-10-25 :: ( 1 minutes reading )

This regex can be use to validate password

((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\W]).{8,20})

description:

(                   # Start of group
  (?=.*\d)          # must contains one digit from 0-9
  (?=.*[a-z])       # must contains one lowercase characters
  (?=.*[\W])        # must contains at least one special character
  .                 # match anything with previous condition checking
  {8,20}            # length at least 8 characters and maximum of 20 
)                   # End of group
comments powered by Disqus

Archives

English

  • Testing go 1.5 cross compilation on raspberry pi
  • osx-push-to-talk App
  • Tracking origin of bugs with git bisect
  • Stubbing Time.Now() in golang
  • My account just got hacked by Romanian (Possibly)
  • berks upload core dump
  • Safely sharing credentials with PGP
  • Homeward light indicator with RaspberryPi and CommonSense
  • Responsive Design
  • Jekyll error utf-8 caracter

Indonesia

  • Ruby Fiber apaan sih ?
  • Scale MongoDB dengan Sharding
  • Telepon murah ke Indonesia dengan voip

Today I Learned

  • Regex for Validating Password
  • Sort file inline
  • Show Hidden File
  • Bash Forloop
  • Zsh Ctrl P Same Behavior as Up Arrow
  • extend letsencrypt certificate with DNS challenge
  • rename tmux window
  • DNSSEC
  • reset email multiple git commit
  • encription with gpg
Labs.Yulrizka.com
twitter github feed
    • Left Panel
    • No Panel
    • Right Panel
  • Home
  • EN
  • ID
  • Today I Learned

© Ahmy Yulrizka 2019. Made with hugo source