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일

0 개 추천

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