Skip to content

Instantly share code, notes, and snippets.

@fesja
Created July 5, 2013 15:39
Show Gist options
  • Save fesja/5935373 to your computer and use it in GitHub Desktop.
Save fesja/5935373 to your computer and use it in GitHub Desktop.
Patterns of bad written emails and the fix
$patterns = array(
'.con' => '.com',
'.col' => '.com',
'.cok' => '.com',
'.coj' => '.com',
'.cim' => '.com',
'.om' => '.com',
'.como' => '.com',
'.comm' => '.com',
'.comu' => '.com',
'.ccom' => '.com',
'.cmo' => '.com',
'.cok' => '.com',
'.conn' => '.com',
'.clom' => '.com',
'.cmo' => '.com',
'.xom' => '.com',
'.vom' => '.com',
'.vcom' => '.com',
'.dom' => '.com',
'.uk.co' => '.co.uk',
'hotmail.co' => 'hotmail.com',
'hotmail.cm' => 'hotmail.com',
'hitmail.com' => 'hotmail.com',
'hotnail.com' => 'hotmail.com',
'hotmai.com' => 'hotmail.com',
'hotmal.com' => 'hotmail.com',
'hotmaill.co' => 'hotmail.com',
'hornail.com' => 'hotmail.com',
'htmail.com' => 'hotmail.com',
'hotmil.com' => 'hotmail.com',
'homail.com' => 'hotmail.com',
'hotmai.com' => 'hotmail.com',
'hormail.com' => 'hotmail.com',
'hhotmail.com' => 'hotmail.com',
'hotmsil.com' => 'hotmail.com',
'hitmail.com' => 'hotmail.com',
'hotmsil.com' => 'hotmail.com',
'htomail.com' => 'hotmail.com',
'hotmsil.com' => 'hotmail.com',
'hotamail.com' => 'hotmail.com',
'hotmeil.com' => 'hotmail.com',
'hotmaiil.com' => 'hotmail.com',
'hptmail.com' => 'hotmail.com',
'hotmail.couk' => 'hotmail.com',
'gmail.co' => 'gmail.com',
'gmail.cm' => 'gmail.com',
'gmai.com' => 'gmail.com',
'gmailc.om' => 'gmail.com',
'gmaul.com' => 'gmail.com',
'gmial.c' => 'gmail.com',
'yahoo.co' => 'yahoo.com',
'yahoo.cm' => 'yahoo.com',
'yahoo.ea' => 'yahoo.es',
'yahoo.ed' => 'yahoo.es',
'yahoo.ew' => 'yahoo.es',
'yahoo.ex' => 'yahoo.es',
'yahoo.ez' => 'yahoo.es',
'yahoo.com.arc' => 'yahoo.com',
'me.es' => 'me.com',
'iclod.me' => 'icloud.com'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment