how to judge some bytes is or not a-z,A-Z?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Roger
am 27 Jun. 2014
Bearbeitet: Mischa Kim
am 27 Jun. 2014
i read some files using fread ,then some bytes display like blank , but there is sth.,i want to delete these special chars ,how to make it ? thanks
0 Kommentare
Akzeptierte Antwort
Mischa Kim
am 27 Jun. 2014
Bearbeitet: Mischa Kim
am 27 Jun. 2014
Roger, use regular expressions, something like
str = 'a b{}c1230O /&" â'
str =
a b{}c1230O /&" â
str_rep = regexprep(str,'[^a-zA-Z0-9]','')
str_rep =
abc1230O
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu File Operations 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!