Skip to content

Instantly share code, notes, and snippets.

@ciaranmahoney
ciaranmahoney / Extract naked domain from full url
Created August 18, 2016 21:59
Formula for extracting naked domain from full url in Google Sheets.
=iferror(trim(REGEXEXTRACT(REGEXREPLACE(REGEXREPLACE(A2,"https?://",""),"^(w{3}\.)?","")&"/","([^/?]+)")))