Regular Expressions 101

Community Patterns

Password

1

Regular Expression
ECMAScript (JavaScript)

/
(?=^[A-Z])(?=.{1,4}\d)(?=.*[A-Za-z])[A-Za-z\d]{8,}
/

Description

First letter capitalized, well within the first four characters has a number and the minimum length is 8

Submitted by Caleb Lopez - 8 years ago