regexprep with multiple expression

1 visualización (últimos 30 días)
Pete sherer
Pete sherer el 24 de Ag. de 2012
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.

Respuestas (2)

Daniel Shub
Daniel Shub el 24 de Ag. de 2012
Is this what you want?
ttxt = 'hello parish world borough foo census area bar';
regexprep(ttxt, ' parish| borough| census area','')

Pete sherer
Pete sherer el 24 de Ag. de 2012
Yes. Thanks
  1 comentario
Azzi Abdelmalek
Azzi Abdelmalek el 24 de Ag. de 2012
this is not an answer. if you are satisfied, you have to click on "accept answer"

Iniciar sesión para comentar.

Categorías

Más información sobre App Building en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by