필터 지우기
필터 지우기

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 CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by