regexp(a,exp) related question.
3 views (last 30 days)
Show older comments
azizullah khan
on 21 Jul 2014
Edited: Azzi Abdelmalek
on 21 Jul 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 ....
0 Comments
Accepted Answer
Azzi Abdelmalek
on 21 Jul 2014
Edited: Azzi Abdelmalek
on 21 Jul 2014
a='<img src="images/flags/.gif" border=0 alt="">Country'
b=regexp(a,'(?<=>).+','match')
0 Comments
More Answers (1)
Robert Cumming
on 21 Jul 2014
you could use strfind to find the end of the html string, then parse the end of the string to get the Country.
0 Comments
See Also
Categories
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!