从字符串快速过滤特殊字符 [英] Filtering Special Characters Quickly From A String

查看:308
本文介绍了从字符串快速过滤特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需要允许(基本上你可以在键盘上看到的每一把键)然后放下其余部分。

我可能会使用正则表达式来做这件事但我不是很好此时。

有没有人有这样做的例子?

I need to only allow (basically every key that you can see on the keyboard) and drop the rest.

I would probably use a regular expression to do this but Im not that great with them at this time.

Does anyone have an example of how to do this?

推荐答案

允许的字符集是什么?其余的下降是模糊的。不同的文化在键盘上有不同的键....
What is the set of allowable characters? The drop the rest is vague. Also different cultures have different keys on the keyboard....


这篇关于从字符串快速过滤特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆