Simple snippet to replace the extension of a website's domain

Simple snippet to replace the extension of a website's domain.

{=replaceregex({site:domain}, ("\w+$"), "domain")}