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
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!