Read specific string in a large text lines
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Praveen Choudhury
il 10 Ago 2017
Commentato: Brian Hannan
il 10 Ago 2017
I have lines in a text file like this
</TypeInfo><TypeMaxValue>65535</TypeMaxValue> <TypeMinValue>0</TypeMinValue><Name>Rick</Name>
How can I textscan and bring just
<Name>Rick</Name>
into my cell array?
0 Commenti
Risposta accettata
Brian Hannan
il 10 Ago 2017
5 Commenti
Brian Hannan
il 10 Ago 2017
Take a look at the regexp documentation for some ideas. There's an example over there that solves this problem. It's titled "Capture Substrings of Matches Using Ordinal Tokens".
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Characters and Strings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
