メインコンテンツまでスキップ
バージョン:25.2

extractURL

  • function
  • The extractURL() function takes a URL text string and returns a property list of the components of that URL: scheme, host, port, user, password, path, query, parameters, and fragment. Encoded spaces and special characters in each value are properly decoded as needed.
         put extractURL(appleDevURL) into urlPropertyList

get extractURL("<a href="http://xyz.net:8100/get/this?a=1&b=2#mark" class="l0">http://xyz.net:8100/get/this?a=1&b=2#mark</a>")
put it -- (fragment:"mark",host:"xyz.net",path:"/get/this",
port:"8100",query:(a:"1",b:"2"),scheme:"http")
  • Related: makeURL, URL