regexp(a,exp) related question.
3 次查看(过去 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 ....
0 个评论
采纳的回答
Azzi Abdelmalek
2014-7-21
编辑:Azzi Abdelmalek
2014-7-21
a='<img src="images/flags/.gif" border=0 alt="">Country'
b=regexp(a,'(?<=>).+','match')
0 个评论
更多回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!