Parse urls of images from flickrs
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!