Borrar filtros
Borrar filtros

Parse urls of images from flickrs

2 visualizaciones (últimos 30 días)
KnowledgeSeeker
KnowledgeSeeker el 11 de Feb. de 2014
Respondida: Walter Roberson el 11 de Feb. de 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

Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Feb. de 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.

Más respuestas (0)

Categorías

Más información sobre String Parsing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by