urlParse

バージョン 1.0.0 (1.59 KB) 作成者: Emmanuel Farhi
parse a URL and return its components
ダウンロード: 11
更新 2021/6/21

ライセンスの表示

This small utility is an URI/URL decoder. Given a string, it returns a structure with parts composing the URI, according to https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
A URI syntax is:
  • URI = scheme:[//authority]path[?query][#fragment]
where authority can be [userinfo@]host[:port].
For instance :
url1 = 'https://www.mathworks.com/matlabcentral/fileexchange/?term=example#total_results_az_footer';
res = urlParse(url1);
res =
scheme: 'https:'
authority: '//www.mathworks.com'
path: '/matlabcentral/fileexchange/'
query: '?term=example'
fragment: '#total_results_az_footer'

引用

Emmanuel Farhi (2024). urlParse (https://www.mathworks.com/matlabcentral/fileexchange/94545-urlparse), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2021a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0