J
josh
Hi, in this regex I have two different results but why?
Pattern p = Pattern.compile("[a-z&&[def]]");
Matcher m = p.matcher("adef");
boolean b = m.find(); // true
boolean b2 = Pattern.matches("[a-z&&[def]]", "adef"); // false
If I try to use another regex tool as RegexBuddy I also have false
But the is the intersection a regex standard feature?
Thanks
Pattern p = Pattern.compile("[a-z&&[def]]");
Matcher m = p.matcher("adef");
boolean b = m.find(); // true
boolean b2 = Pattern.matches("[a-z&&[def]]", "adef"); // false
If I try to use another regex tool as RegexBuddy I also have false
But the is the intersection a regex standard feature?
Thanks