Lowden

now

java 对“/\:*?" <>| ”字符进行过滤

String temp = " abc  :?das*-b<>b.txt";
System.out.println(temp.replaceAll(
"[ \\\\\\/\\:\\*\\?\\\"\\<\\>\\|]", ""));

posted on 2009-10-21 21:09 Lowden 阅读(30) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。
网站导航:

My Links

Blog Stats

常用链接

留言簿

随笔分类

随笔档案

文章分类

文章档案

好友链接

搜索

最新评论

阅读排行榜

评论排行榜