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('foo@bar.com' ) AS output;
output |
---|
"bar.com" |
Was this page helpful?