URL-decodes the contents of a string field.
Function Traits: FieldComputationFunction
, Transformation
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
as | string | optional | _urldecode | Name of output field. |
field [a] | string | required | The name of the input field with the value to url-decode. | |
The parameter name for field
can be omitted; the following forms are equivalent:
logscale
urlDecode("value")
and:
logscale
urlDecode(field="value")
urlDecode()
Examples
With an event with a field
Bar=https%3A%2F%2Fwww.example.com,
you get https://www.example.com
in the
_urldecode field:
logscale
urlDecode("Bar")
With an event with a field
Bar=https%3A%2F%2Fwww.example.com,
you get https://www.example.com
in the
Foo field:
logscale
Foo:=urlDecode("Bar")
With an event with a field
Bar=https%3A%2F%2Fwww.example.com, you get
https://www.example.com
in the
Foo field:
logscale
urlDecode("Bar", as="Foo")