Pattern p = Pattern.compile(".*ab(?!c).*");
Matcher m = p.matcher("abcdefgt");
System.out.println(m.matches());
m = p.matcher("abdefgt");
System.o……
[/Quote]
Pattern p = Pattern.compile(".*ab(?!c).*");
Matcher m = p.matcher("abcdefgt");
System.out.println(m.matches());
m = p.matcher("abdefgt");
System.out.println(m.matches());