apoc.data.domain
Function APOC Core
apoc.data.domain('url_or_email_address') YIELD domain - extract the domain name from a url or an email address. If nothing was found, yield null.
Usage Examples
RETURN apoc.data.domain('http://www.example.com/all-the-things') AS output;
output |
---|
"www.example.com" |
RETURN apoc.data.domain('[email protected]' ) AS output;
output |
---|
"bar.com" |