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

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by