regexprep with multiple expression
Afficher commentaires plus anciens
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.
Réponses (2)
Daniel Shub
le 24 Août 2012
Is this what you want?
ttxt = 'hello parish world borough foo census area bar';
regexprep(ttxt, ' parish| borough| census area','')
Pete sherer
le 24 Août 2012
0 votes
1 commentaire
Azzi Abdelmalek
le 24 Août 2012
this is not an answer. if you are satisfied, you have to click on "accept answer"
Catégories
En savoir plus sur App Building dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!