Finds the value a subdomain value from a valid URL. Input values must be of URL or String type.

In this implementation, a subdomain value is the first group of characters in the URL after any protocol identifiers ( http:// or https://, for example).

URL literal example:

Output: Returns the value: www

Output: Returns the value: www.exampl

Column reference example:

Output: Returns the subdomain values extracted from the myURLs column. 


ArgumentRequired?Data TypeDescription
column_urlYstringName of column or String or URL literal containing the sub-domain value to extract

column_url

Name of the column or URL or String literal whose values are used to extract the subdomain value.

 

Required?Data TypeExample Value
YesString literal or column reference (URL)http://www.example.com

Example - Domain, Subdomain, Host, and Suffix functions