Regular Expressions 101

Community Patterns

3 or more single digit consecutive numbers

0

Regular Expression
ECMAScript (JavaScript)

/
(.)(?:(?:0(?=1|\b)|1(?=2|\b)|2(?=3|\b)|3(?=4|\b)|4(?=5|\b)|5(?=6|\b)|6(?=7|\b)|7(?=8|\b)|8(?=9|\b)|9(?=0|\b)){3,})
/
g

Description

To check whether the given String contains 3 or more consecutive single digit numbers

Submitted by Pradeep Patil - 7 years ago