Parse urls of images from flickrs
1 view (last 30 days)
Show older comments
KnowledgeSeeker
on 11 Feb 2014
Answered: Walter Roberson
on 11 Feb 2014
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
0 Comments
Accepted Answer
Walter Roberson
on 11 Feb 2014
[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 Comments
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!