parser

This block is part of the value group and was last modified in core v10.4.28.

parser v10.4.28

In pins 1
  • URL required
    value
Out pins 12
  • host
    value
  • port
    value
  • protocol
    value
  • hash
    value
  • hostname
    value
  • href
    value
  • origin
    value
  • username
    value
  • password
    value
  • pathname
    value
  • search
    value
  • search params
    array

Decomposes the URL: protocol INCLUDES the trailing ":", search INCLUDES the leading "?", hash INCLUDES the leading "#", and search_params_entries is an array of {name,value} objects preserving query order. When the url pin is unwired or the URL cannot be parsed, NO out-pins are set at all -- there is no error signal.

A typical wiring for parser: the host out pin feeds convert to uppercase.

Studio canvas example for the parser block: typical wiring for parser.

Version history

Introduced in v10.4.28.


Back to value Return to the main group to view all sub-groups Back to url Return to the group to view all blocks within this group