regexp(a,exp) related question.

1 次查看(过去 30 天)
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 ....

采纳的回答

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

更多回答(1 个)

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

类别

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