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

A valid value for the URL data type can be composed of the following parts. 

Example URL:

Code Block
http://www.app.example.co.uk/support

...

Element NameExamplesWrangle FunctionNotes
Top-level domain
  • co.uk
  • com, net, org
SUFFIX Function

Every valid URL must have at least one top-level domain.

Info

NOTE: When the DOMAIN function parses a multi-tiered top-level domain such as co.uk, the output is the first part of the domain value (e.g. co).

Second-level domain

example

app.example

DOMAIN FunctionThis value can be extracted from a valid URL using the DOMAIN function. See DOMAIN Function.
Third-level domainwwwSUBDOMAIN FunctionThis value can be extracted from a valid URL using the SUBDOMAIN function. See SUBDOMAIN Function.
path/support  
protocol identifier

http://

https://

 

You can use pattern matching to locate these protocol identifiers. In your

D s lang
transforms, use the following
D s item
itempattern
rtrue
:

Code Block
`http%?://`

For an example, see IPTOINT Function.

hostwww.app.example.comHOST FunctionProtocol identifier (e.g. http://) is not included