Extract domain from URL and Email address

Extract root domains from any URL and Email address
Built-in automations |
Input

url| email address

Output

extracted domain