0
((?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*\!\@\#\%\&\*).{8,25})

this is my regular expression, the problem with it is the (?=.*!\@#\%\&*)

the password is supose to look like this : Za1#gbe1&

Any tip would be really great! PS: its because I was training myself with segex cuz I suck at it

4castle
  • 32,613
  • 11
  • 69
  • 106
  • 3
    Why use a singular monolithic regular expression? This can be easily described with several different conditionals (which might use regular expressions). Also, this is a really backwards password requirement with low security. A much better rule: 16 characters, anything you want, preferably "correct horse battery staple" (google it). – user2864740 Dec 08 '16 at 03:01
  • Not the same cuz he doesnt have a a specify special key like mine – crissdecacanoir Dec 08 '16 at 03:09
  • The `a-z` can be swapped out with any characters. There's nothing unique about special characters vs lowercase characters. Use the same syntax for the special characters. – 4castle Dec 08 '16 at 03:13
  • wow your rigth thanks im dumb – crissdecacanoir Dec 08 '16 at 03:17

0 Answers0