urlpath(
urlpath(
URL
)

The urlpath( function extracts the path from a URL.

Parameters

This function has one parameter:

url – an internet URL.

Description

This function extracts the path from a url.

    urlpath("http://www.provue.com/home.html")
        ☞ http://www.provue.com/
    urlpath("http://www.griffithobs.org/exhibits/all_space.html")
        ☞ http://www.griffithobs.org/exhibits/
    urlpath("http://tidbits.com/article/14079")
        ☞ http://tidbits.com/article/

Note: This function is equivalent to:

    arrayrange(thetext,1,arraysize(thetext,"/")-1,"/")+"/"

See Also

- openurl -- opens a URL (usually a web page or to create an e-mail message).
- openurlinbackground -- opens a URL (usually a web page or to create an e-mail message) without bringing forward the app that handles the URL (in other words, Panorama remains the frontmost application).
- urlfilename( -- extracts the filename from a complete url.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0.