Regex Javascript -
i using below regex in javascript password policy check:
^.*(?=.{8,})(?=.*[a-z])(?=.*[a-z])(?=.*[0-9])(?=.*[@#$_])(?=.*[\d\w]).*$
i tried above regex using online regex checker http://www.nvcc.edu/home/drodgers/ceu/resources/test_regexp.asp
test cases passed expected, negative test cases failed. same regex when deployed in application not validate properly.
for eg: tracker@123
not work, tracker@123
works asd56544#12
works fine.
can please point out what's wrong in regex above?
Comments
Post a Comment