Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-07-20 21:25
Flavor·ECMAScript (JavaScript)

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

Description

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

Submitted by Caleb Lopez