Relative Content

Tag Archive for sqlmysqlregex

Regex SQL to Pull Consecutive Numbers

phone_number 8181122274 8218241857 8178924294 8198884442 I want to query only phone number with criteria triple repeated digit and at least repeated double digit, I tried this regex function: WHERE phone_number REGEXP ‘(.)1{2}’ AND msisdn REGEXP ‘(.)1{1}’ but it seems invalid, if the query was correct it should only pull: 8181122274 8198884442 a correct where conditions […]