skip to Main Content

javascript regex for string

I need to check that a string input contains exactly 2 special characters and 1 number. is this the correct regex for this job? (?=(.*[`!@#$%^&*-_=+'/.,]){2}) this is only checking special characters and not numbers. I tried the regex above and…

VIEW QUESTION
Back To Top
Search