I want to get all lines that according to the pattern xxx.xxx (only) where x is a number from 1 to 9 or any letter
My expression does not work REGEXP '[a-z]{1,3}\.[a-z]{1,3}'
Thx!
UPD: Thx fo all, but does not work! I tryed so
SELECT email, registered, voted, ip, agent
FROM `voters`
WHERE member =199
AND DATE_FORMAT( voted, '%Y-%m-%d' ) < '2014-09-23'
AND SUBSTRING_INDEX( email, '@', 1 )
REGEXP '[a-zA-Z1-9]{3}\.[a-zA-Z1-9]{3}'
result:
libsherbakul@...
savelkina_061080@...
dreik_339@...
simauta25@....
suslenkovagtp@...
driamoff@...
anashkina_1966@...
fedotovauliya@...
omsklib@...
UPD 2: Itryed change pattern so '[a-zA-Z1-9]{3}[\.]{1}[a-zA-Z1-9]{3}'
RESULT:
regina.zheyli@...
rus.antonin@...
kira.albenina@...
alya.oktya@...
andryushka.gromov.1986@...
inna.festival@...
ilyubaj.baktybaev@...
vika.korotkova.02@...
silina.lika@...
mika.sidorova@...
kharlov.dmitriy@...
toni.gordon.70@...
vasya.ganichev.74@...
fomin.slavick22@...
No good, becouse more than 3 symbols before and after "."
[a-zA-Z1-9]{3,}\.[a-zA-Z1-9]{3,}