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?

are sure syntax correct?

have @ jsfiddle, in test cases pass

http://jsfiddle.net/pclpx/


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -