Please help with Regular Expression ..
2 ビュー (過去 30 日間)
古いコメントを表示
Help please
str = '<black><black>shoes'
ans = regexp(str,'.*?','match','ignorecase');
what ans i want is:
'shoes'
but instead i got this:
'<black><black>shoes'
how can i regexp that ?
0 件のコメント
採用された回答
Vishal Rane
2012 年 11 月 30 日
Change the pattern to '<black>\w+</black>'.
2 件のコメント
Vishal Rane
2012 年 11 月 30 日
The same command still works, although output is a 1x2 cell array. Use transpose operator ' to get a 2x1 output.
その他の回答 (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!