Skip to main content
added 178 characters in body
Source Link
Darin Dimitrov
  • 1.0m
  • 275
  • 3.3k
  • 3k

Maybe you will find this article helpful. You may try the following expression

^.*(?=.{8,})(?=.*[\d])(?=.*[\W]).*$

and the breakdown:

  • (?=.{8,}) - contains at least 8 characters
  • (?=.*[\d]) - contains at least one digit
  • (?=.*[\W]) - contains at least one special character

Maybe you will find this article helpful. You may try the following expression

^.*(?=.{8,})(?=.*[\d])(?=.*[\W]).*$

Maybe you will find this article helpful. You may try the following expression

^.*(?=.{8,})(?=.*[\d])(?=.*[\W]).*$

and the breakdown:

  • (?=.{8,}) - contains at least 8 characters
  • (?=.*[\d]) - contains at least one digit
  • (?=.*[\W]) - contains at least one special character
Source Link
Darin Dimitrov
  • 1.0m
  • 275
  • 3.3k
  • 3k

Maybe you will find this article helpful. You may try the following expression

^.*(?=.{8,})(?=.*[\d])(?=.*[\W]).*$