Skip to main content
added 317 characters in body
Source Link
Rahul Tripathi
  • 173.3k
  • 33
  • 292
  • 341

Try to use this regex:

^(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+*!=]).*$ 

REGEX DEMO

Explanation:

(/^ (?=.{8,}) //should be 8 characters or more (?=.*[a-z]) //should contain at least one lower case (?=.*[A-Z]) //should contain at least one upper case (?=.*[@#$%^&+*!=]) //should contain at least 1 special characters .*$/) 

Try to use this regex:

^(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+*!=]).*$ 

REGEX DEMO

Try to use this regex:

^(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+*!=]).*$ 

REGEX DEMO

Explanation:

(/^ (?=.{8,}) //should be 8 characters or more (?=.*[a-z]) //should contain at least one lower case (?=.*[A-Z]) //should contain at least one upper case (?=.*[@#$%^&+*!=]) //should contain at least 1 special characters .*$/) 
added 1 character in body
Source Link
Rahul Tripathi
  • 173.3k
  • 33
  • 292
  • 341

Try to use this regex:

^(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+*[@#$%^&+*!=]).*$ 

REGEX DEMOREGEX DEMO

Try to use this regex:

^(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+!=]).*$ 

REGEX DEMO

Try to use this regex:

^(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+*!=]).*$ 

REGEX DEMO

Source Link
Rahul Tripathi
  • 173.3k
  • 33
  • 292
  • 341

Try to use this regex:

^(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+!=]).*$ 

REGEX DEMO