regexp(a,exp) related question.
1 回表示 (過去 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!