regexprep with multiple expression
古いコメントを表示
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.
回答 (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','')
Pete sherer
2012 年 8 月 24 日
0 投票
1 件のコメント
Azzi Abdelmalek
2012 年 8 月 24 日
this is not an answer. if you are satisfied, you have to click on "accept answer"
カテゴリ
ヘルプ センター および File Exchange で App Building についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!