Regex to validate password

后端 未结 1 1711
情深已故
情深已故 2021-01-21 03:19

I\'ve looked on here for some ideas but I still seem to be struggling with coming up with a regular expression to meet my requirements.

I need a regular expression to ch

相关标签:
1条回答
  • 2021-01-21 03:39

    Change the last part .{8,} to [a-zA-Z\d]{8,}

     ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$
    
    0 讨论(0)
提交回复
热议问题