I am trying to validate a password field with regular expression.
the trouble is none of the ones I find on the net seem to work.
This won't allow Hello12 which it should
This won't allow Hello12 either.
This won't allow Hello12*
Basically every RegEx I look up won't work as intended. And I have no idea why.
Nothing seems to pass the validation at all.
All I am using is a textbox and regular expression validator.
Can anyone help me?
the trouble is none of the ones I find on the net seem to work.
Code:
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{4,8}$
Code:
^(?=.*\d)(?=.*[a-zA-Z])(?!.*[\W_\x7B-\xFF]).{6,15}$
Code:
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$
Basically every RegEx I look up won't work as intended. And I have no idea why.
Nothing seems to pass the validation at all.
All I am using is a textbox and regular expression validator.
Can anyone help me?
Comment