博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
过滤字符串中非法字符
阅读量:4451 次
发布时间:2019-06-07

本文共 411 字,大约阅读时间需要 1 分钟。

static final char[] escChars = { '+', '-', '&', '|', '!', '{', '}', '[', ']', '^', '"', '~', '*', '?', '\\', ':' };static {    Arrays.sort(escChars);}private String decEscChar(final String input) {    char arr[] = input.toCharArray();    for (int i=0; i
= 0) { arr[i] = ''; } } return new String(arr);}

转载于:https://www.cnblogs.com/beanchoc/archive/2012/07/06/2579254.html

你可能感兴趣的文章
CF36 E Two Paths——欧拉(回)路
查看>>
JS ——DOM,BOM(包含盒模型,动画)总结
查看>>
C 显示一个字符的编码值
查看>>
Sharepoint2010安装后打不开首页
查看>>
sc服务查询
查看>>
git clone 出错 fatal: pack has bad object at offset 26060927: inflate returned -3
查看>>
利用runtime字典转模型
查看>>
Asp实现页面跳转有三种方法
查看>>
vertical-align的用处
查看>>
Popularize what is heart of mobile phone?
查看>>
CSS 笔记六(Image/Attribute Selectors)
查看>>
PHP 笔记一(systax/variables/echo/print/Data Type)
查看>>
CF449B最短路
查看>>
Stream语法详解
查看>>
树链剖分总结笔记
查看>>
hdu 4043
查看>>
hdu 1506
查看>>
PowerShell创建 Profile
查看>>
MySQL+Altas 读写分离测试(Altas 不能用存储过程,Update和Delete必须要有参数)
查看>>
Spring声明式事务管理基于tx/aop命名空间
查看>>