正则表达式汇总

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

        /**
         * 不包含非法字符
         */
        public static final String DO_NOT_HAVE_ILLEGAL_SPECVAL = "^[^\&<>\\]*$";
原文地址:https://www.cnblogs.com/smile361/p/4267349.html