正则表达式汇总

/**
         * 不包含非法字符
         */
        public static final String DO_NOT_HAVE_ILLEGAL = "[^&\\\\<>'\"]+";

        /**
         * 不包含非法字符
         */
        public static final String DO_NOT_HAVE_ILLEGAL_SPECVAL = "^[^\\&<>\\\\]*$";

 

posted @ 2015-02-02 11:27  欢歌911  阅读(118)  评论(0编辑  收藏  举报