regexprep with multiple expression
9 ビュー (過去 30 日間)
古いコメントを表示
Hi,
Is there a way to consolidate these regexprep into one expression? regexprep(ttxt, ' parish',''); regexprep(ttxt, ' borough',''); regexprep(ttxt, ' census area','');
ttxt is a cell array.
Thanks.
0 件のコメント
回答 (2 件)
Daniel Shub
2012 年 8 月 24 日
Is this what you want?
ttxt = 'hello parish world borough foo census area bar';
regexprep(ttxt, ' parish| borough| census area','')
0 件のコメント
Pete sherer
2012 年 8 月 24 日
1 件のコメント
Azzi Abdelmalek
2012 年 8 月 24 日
this is not an answer. if you are satisfied, you have to click on "accept answer"
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!