java正则表达式匹配文件夹名称特殊字符

        Matcher matcher = Pattern.compile(
                "[\\u005C/:\\u002A\\u003F\"<>\'\\u007C’‘“”:?]" ).matcher(
                name );

        while ( matcher.find() )
        {
            
        }

 

posted @ 2014-09-10 11:51  水之原  阅读(6607)  评论(0编辑  收藏  举报