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 Center および File ExchangeString Parsing についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by