regexp(a,exp) related question.

조회 수: 1 (최근 30일)
azizullah khan
azizullah khan 2014년 7월 21일
편집: Azzi Abdelmalek 2014년 7월 21일
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