Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2017-04-17 12:08
Flavor·PCRE (Legacy)

/
^(?=.{8,20}$)(\b\D*(\d)\2{7,}\D*\b)$
/
g
Open regex in editor

Description

Match 8 or more consecutive digits irrespective of it's position in the string with string length between 8 and 20. ex: 11111111 - match ASD11111111 - match ASD22222222oook - match 777kjoi77777 - no match etc.,

Submitted by Cyanotrix