フィルターのクリア

Parse urls of images from flickrs

2 ビュー (過去 30 日間)
KnowledgeSeeker
KnowledgeSeeker 2014 年 2 月 11 日
回答済み: Walter Roberson 2014 年 2 月 11 日
Hi everyone, I am using regexp to parse the link of an image without the extension type of the image
the url of the image i want to find is like this
http://farm2.staticflickr.com/1103/567229075_2cf8456f01_s.jpg
anybody is knowing to parse this exact link
I use this expression but it doesnt work
startIndex= 'type="photopage">';
imageUrl= regexp (imageurl, [startIndex'"([^"]*/'],'tokens');
but unfortunately it doesn't work
any help is highly appreciated

採用された回答

Walter Roberson
Walter Roberson 2014 年 2 月 11 日
[startIndex'"([^"]*/']
is not a valid MATLAB expression. If startIndex is a string then you need a space between it and the ' that starts the literal string. If startIndex is not a string then the result of the [] is not going to be a string and that will not be allowed even if you added the missing space.

その他の回答 (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