Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version next

...

D s
snippetBasic

URL literal example:

SUBDOMAIN
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
subdomain('http://www.example.com' ) as: 'myDomain'

subdomain('http://www.example.com')

Output:

...

Returns the value: www

SUBDOMAIN
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
subdomain('http://www.exampl.e.com') as: 'myDomain'

subdomain('http://www.exampl.e.com')

Output: Generates a column containing the value  Returns the value: www.exampl

Column reference example:

SUBDOMAIN
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
subdomain(myURLs) as: 'myDomain'

subdomain(myURLs)

Output:

...

 Returns the subdomain values extracted from the myURLs column. 

D s
snippetSyntax

SUBDOMAIN
d-codelang-syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value:
subdomain(column_url)

subdomain(column_url)


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

...