Find consecutive diphthongs in MySQL -


i have list of addresses in shops database. lot of these fake; consist of strings dfdfdfsd@somewhere.com , qwsdrtghj@somewherelse.com.

in other words: @ least 5 dipthongs in row. how can search such string in sql query? basically: diphthong followed diphthong, , 5 times.

it looks you're doubling on of consonants determine dipthong. example:

dfdfdfsd 

if count df, df, df , sd separate dipthongs, total four. looks may overlapping:

dfdfdfsd ^df  ^fd   ^df    ^fd     ^df      ^fs       ^sd 

that gives total of 7 dipthongs.

i don't know how match that, how checking if there 5 (or more) consonants in row? it:

email rlike '[b-df-hj-np-twxz]{5,}' 

if don't want treat y vowel, add string above. put between x , z readability, or @ least don't put after 1 of hyphens or you'll break expression.

likewise, if 6 (or 7 or 8) consonants in row tipping point you're after, adjust 5 in expression above accordingly.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -