extract word before and after character
Afficher commentaires plus anciens
i want to extract string before "(" and after " " or "," (space comma)
example:
input: pilo(52),iko(54);
result:
pilo
iko
4 commentaires
Can you be more specific about what MATLAB class your input is? Here are some examples
in = ["pilo(52)","iko(54)"]
in = {"pilo(52)","iko(54)"}
in = {'pilo(52)','iko(54)'}
in = "pilo(52),iko(54)"
in = 'pilo(52),iko(54)'
Walter Roberson
le 19 Déc 2023
Is it ever possible for the input to have nested () ? For example,
pilo(sembei(93) fedora(s3))
Is it every possible for there to be digits in what is extracted? Is it ever possible for the part in () to be non-digits?
pilo17(52),iko(pippin)
aldo
le 19 Déc 2023
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects 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!