Hi,
Since my post I have found an answer to my own question.
In order to extract the domain from a string such as
me@domain.com/photos
you can use the following code as one solution:
Firstly you want to extract the domain and path from the
username and "@" sign:
<cfset string = "me@domain.com/photos">
<cfset startString = ListLst(string, "@")>
the var "startString" will now display: domain.com/photos
secondly, you now want to remove the path from the domain:
<cfset domainOnly = ListFirst(startString, "/")
<cfoutput>#domainOnly'</cfoutput>
This will display: domain.com
I hope this is of use to someone.