Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-12-02 12:40
Flavor·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
Open regex in editor

Description

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

Submitted by Pradeep Patil