Regular Expressions 101

Community Patterns

No repeating same digits in a string of max length six

0

Regular Expression
PCRE (PHP <7.3)

/
^(\d)(?!\1+$)\d{5}$
/
gm

Description

no description available

Submitted by anonymous - 6 years ago