Based on the below password policy need a regex in java/javascript
--Maximum Occurrence (Number of repeated Characters allowed): 1 --Minimum Alpha: 1 --Minimum Embedded Numeric: 1 --Minimum Length: 8 --Minimum Number of Character Type Rules That Must Pass: 0 --Minimum Numeric: 2 --Must Not Contain: account Id --Number of Previous Passwords that cannot be reused: 5