Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^.*([A-Za-z]).*\1.*$
/

Description

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

Submitted by Kannan SB - 10 years ago