regexprep with multiple expression
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Daniel Shub
il 24 Ago 2012
Is this what you want?
ttxt = 'hello parish world borough foo census area bar';
regexprep(ttxt, ' parish| borough| census area','')
0 Commenti
Pete sherer
il 24 Ago 2012
1 Commento
Azzi Abdelmalek
il 24 Ago 2012
this is not an answer. if you are satisfied, you have to click on "accept answer"
Vedere anche
Categorie
Scopri di più su Characters and Strings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!