Extract just URL using Regular Expressions

1 回表示 (過去 30 日間)
Marko Rajkovic
Marko Rajkovic 2018 年 10 月 15 日
Hello everyone, does anyone of you know how to extract just the urls? x should provide a 1X3 cell array containing: {'www.lichess.org'} {'www.bing.com'} {'www.google.com'}
regularexpression = '';
script = ['I <I>used</I> <B>to</B> visit <THE> website <A HREF=www.lichess.org>twice a day</A>. ' ...
'Visit <I>the website</I> <A HREF=www.bing.com>or alternatively</A> just <A HREF=www.google.com> for more information</A>.']
x = regexp(script,regularexpression,'match')

回答 (0 件)

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by