I'm working on a formula field to capture the domain details from the website and I have created the below formula
If(NOT(ISBLANK(Website)),SUBSTITUTE(Website, LEFT(Website, FIND(".", Website)), NULL), Domain_from_lead__c )
It's working fine except for the below cases.
Could you please help me to handle these cases
http(s)://
and any characters after that slash. Do you also need to account for subdomains? Likemaps.google.com
orsalesforce.stackexchange.com
?