extract word before and after character
Mostra commenti meno recenti
i want to extract string before "(" and after " " or "," (space comma)
example:
input: pilo(52),iko(54);
result:
pilo
iko
4 Commenti
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
il 19 Dic 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
il 19 Dic 2023
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects 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!