Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created March 12, 2019 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ELLIOTTCABLE/8dbaab4fae08c7fd0562eccc934ffd9a to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/8dbaab4fae08c7fd0562eccc934ffd9a to your computer and use it in GitHub Desktop.
I'm sorry for this
// Test it here: https://rubular.com/r/BP5fM0kqwAONu7
// TLDs represented with >=1,000 domains in the Alexa top-1M. Messily extracted from
// here: <https://www.hayksaakian.com/most-popular-tlds/>
/a[rtuz]|b([egry]|iz)|c([achnz]|l(ub)?|om?)|d[ek]|e([su]|du)|f[ir]|g([r]|ov)|h[kru]|i([delort]|n(fo)?)|jp|k[rz]|lt|m([exy]|il)|n([loz]|et)|org|p([lt]|ro)|r[ou]|s([eku]|ite)|t[hrvw]|u[aks]|vn|xyz|za/
ar
at
au
az
be
bg
biz
br
by
ca
cc
ch
cl
club
cn
co
com
cz
de
dk
edu
es
eu
fi
fr
gov
gr
hk
hr
hu
id
ie
il
in
info
io
ir
it
jp
kr
kz
lt
me
mil
mx
my
net
nl
no
nz
org
pl
pro
pt
ro
ru
se
site
sk
su
th
tr
tv
tw
ua
uk
us
vn
xyz
za
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment