regexp(a,exp) related question.

1 visualizzazione (ultimi 30 giorni)
azizullah khan
azizullah khan il 21 Lug 2014
Modificato: Azzi Abdelmalek il 21 Lug 2014
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 ....

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 21 Lug 2014
Modificato: Azzi Abdelmalek il 21 Lug 2014
a='<img src="images/flags/.gif" border=0 alt="">Country'
b=regexp(a,'(?<=>).+','match')

Più risposte (1)

Robert Cumming
Robert Cumming il 21 Lug 2014
you could use strfind to find the end of the html string, then parse the end of the string to get the Country.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by