public static <T extends CharSequence> T validateMatchRegex(String regex, T value, String errorMsg) throws ValidateException {
		if (false == isMactchRegex(regex, value)) {
			throw new ValidateException(errorMsg);
		}
		return value;
	}
public static < T extends CharSequence > T validateMatchRegex ( String regex , T value , String errorMsg ) throws ValidateException { if ( false == isMactchRegex ( regex , value ) ) { throw new ValidateException ( errorMsg ) ; } return value ; }
通过正则表达式验证<br>
不符合正则抛出{@link ValidateException} 异常

@param <T> 字符串类型
@param regex 正则
@param value 值
@param errorMsg 验证错误的信息
@return 验证后的值
@throws ValidateException 验证异常