I'm trying to cleanse a data set from erroneous phone number entries. Having trouble making the regular expression for the filter in MySQL.
The structure is the following:
First digit is in 2-9
Second and third digits can be any numeral except they may not be the same number
Forth digit is in 2-9
Fifth and sixth digits can be any numeral except '11'
I've landed on a few rather elaborate reg expressions which didn't quite work; but I'm sure there is a simplistic approach.
A "valid" number might look like:
2028658680
7137038891
My filter usually misses cases such as:
6778914351
7777777777
6178116678
Note that these numbers are completely made up.