Can anybody please tell me what's wrong with this regexp
"^[a-zA-Z0-9 -\\/_&()']*$"
I expect this to accept only values like abc123/-_
's but I'm not sure why it's even accepting ABC
But it's not accepting double quotes in it.
Here is my code:
public static final Pattern
PATTREN = Pattern.compile("^[a-zA-Z0-9 -\\/_&()']*$");
Matcher m = PATTREN .matcher("ABC\"");
return m.matches();