Syntax
PARSE_URL(text, [include_public_suffix_domains: FALSE])
Usage examples
| Input | 1 { 2 "my_action":{ 3 "url":"http://www.tines.com/test?foo=bar&baz=a&baz=b#123" 4 } 5 } Copy |
| Formula | PARSE_URL(my_action.url) |
| Output | 1 { 2 "domain":"tines.com", 3 "fragment":"123", 4 "host":"www.tines.com", 5 "path":"/test", 6 "port":80, 7 "query":{ 8 "baz":[ 9 "a", 10 "b" 11 ], 12 "foo":"bar" 13 }, 14 "scheme":"http", 15 "tld":"com" 16 } Copy |
| Input | 1 { 2 "my_action":{ 3 "url":"https://s3.us-east-2.amazonaws.com" 4 } 5 } Copy |
| Formula | PARSE_URL(my_action.url, include_public_suffix_domains: TRUE) |
| Output | 1 { 2 "scheme":"https", 3 "host":"s3.us-east-2.amazonaws.com", 4 "path":"", 5 "port":443, 6 "query":null, 7 "fragment":null, 8 "domain":"amazonaws.com", 9 "tld":"com" 10 } Copy |