segregating a text

I have a char array where the content is mainly simila to this format 'JPM/GS/UBS-INV-BANK'
is it possible to separate the names where the separator "/" would be used to separate the names to obtain : JPM then GS then UBS-INV-BANK

 Risposta accettata

Walter Roberson
Walter Roberson il 28 Giu 2011

0 voti

regexp('JPM/GS/UBS-INV-BANK','/', 'split')

Più risposte (1)

Fangjun Jiang
Fangjun Jiang il 28 Giu 2011

0 voti

strread('JPM/GS/UBS-INV-BANK','%s','delimiter','/')

Categorie

Scopri di più su Text Analytics Toolbox in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by