Community Patterns

Community Library Entry

-2

Regular Expression
Created·2015-03-18 21:34
Flavor·PCRE (Legacy)

/
^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])(?!\1|\2|\3)([0-9])$
/
gm
Open regex in editor

Description

A pcre that capture a 4-digit numeric that does not allow a leading zero and no repeat digits.

Submitted by Jeff Thompson