how to judge some bytes is or not a-z,A-Z?

1 回表示 (過去 30 日間)
Roger
Roger 2014 年 6 月 27 日
編集済み: Mischa Kim 2014 年 6 月 27 日
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

採用された回答

Mischa Kim
Mischa Kim 2014 年 6 月 27 日
編集済み: Mischa Kim 2014 年 6 月 27 日
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 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by