regexprep with multiple expression
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (2)
Daniel Shub
am 24 Aug. 2012
Is this what you want?
ttxt = 'hello parish world borough foo census area bar';
regexprep(ttxt, ' parish| borough| census area','')
0 Kommentare
Pete sherer
am 24 Aug. 2012
1 Kommentar
Azzi Abdelmalek
am 24 Aug. 2012
this is not an answer. if you are satisfied, you have to click on "accept answer"
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!