regular expression with alphanumeric with all special chars excpet with %
Length of string must be 1 to 12.
trying this way (as regex), but this is allowing % also.
[[^=][\w\S][^-]]{1,13}
example my input string (itemValue) for above pattern, should give false: test%t1z
Pattern pattern = Pattern.compile(regexStr);
Matcher matcher = pattern.matcher(itemValue);
if(matcher.matches()){
flag = true;
}