<form><spanclass="registration-error"ng-show="regForm.password.$error.pattern">- Fail to match..</span><inputtype="password"ng-model="registerForm.password"name="password"ng-pattern="/^.*(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[\d\W]).*$/"required/></form>