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 ....

 采纳的回答

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

更多回答(1 个)

Robert Cumming
Robert Cumming 2014-7-21

0 个投票

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

类别

在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by