Read specific string in a large text lines
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Praveen Choudhury
am 10 Aug. 2017
Kommentiert: Brian Hannan
am 10 Aug. 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 Kommentare
Akzeptierte Antwort
Brian Hannan
am 10 Aug. 2017
5 Kommentare
Brian Hannan
am 10 Aug. 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".
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Text Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!