I have following individual regular expressions I want to combine them using AND condition , I am using them for validating password
.[A-Z]+. - validate uppercase (one letter uppercase min)
.[0-9]+. - validate number ( one number atleast )
.[a-z]+. - validate lowercase ( one lower case minimum )
.{8,} - validate min character 8
.[^A-Za-z0-9]. - validate special character (atleast one special character )
(.)\1 - validate consecutive characters (no consecutive characters )
Right now I am validating every character separately , but i want to do it in one function only
I tried following way of combining
/^((.)\1)(.[A-Z]+.)(.[a-z]+.)(.[0-9]+.)(.[^A-Za-z0-9].).*$/
Above doesn't have all the expressions but I am trying to show how I have done.