regexp(a,exp) related question.

a=<img src="images/flags/.gif" border=0 alt="">Country
want to get only Country using regexp and if any other function kindly mention it.
Country word will different for the next one.Use general statement .
thanks ....

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 21 de Jul. de 2014
Editada: Azzi Abdelmalek el 21 de Jul. de 2014

0 votos

a='<img src="images/flags/.gif" border=0 alt="">Country'
b=regexp(a,'(?<=>).+','match')

Más respuestas (1)

Robert Cumming
Robert Cumming el 21 de Jul. de 2014

0 votos

you could use strfind to find the end of the html string, then parse the end of the string to get the Country.

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 21 de Jul. de 2014

Editada:

el 21 de Jul. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by