regex - Regular expression for password validation in c# -


For password recognition, in C # in

  1. Need help with rezux;
  2. At least one digit, lower case and one upper case

I'm tired:

  var rule = new Regex ("^ (? =. [Az]) (? =. * [AG]) (? =. * [0- 9]) $");  

but it does not work: (

before you Letterhead and you also need to add . * to add zero after all the LookIahad, because it claims zero width, it will not match any character, but only it tells Whether a match is possible or not.

  var Rules = New Reggae (@ "^ (? =. {8,16} $) (? =? *? [Az]) (? =. *? [AZ]) (? =. *? [0- 9]). * $ ");  


Comments

Popular posts from this blog

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -