URL

Converts text to URL

Description

Converts the given text to an URL-type text. Returns null if the text cannot be converted to an URL.

Function signature

URL(text: String) => String

Parameter

Description

Text

Text to convert

Examples

Formula

Return value

URL("http://foo.com/blah_blah")

http://foo.com/blah_blah

URL("https://www.example.com/foo/?bar=baz&inga=42&quux")

https://www.example.com/foo/?bar=baz&inga=42&quux

URL("http://[email protected]/")

http://[email protected]/

URL("http://142.42.1.1:8080/")

http://142.42.1.1:8080/