String regx="[^a|b|3]";
String temp="6sabcsssfsfs33";
Pattern p=Pattern.compile(regx);
Matcher m=p.matcher(temp);
while(m.find())
System.out.print(m.group());
String temp="6sabcsssfsfs33";
Pattern p=Pattern.compile(regx);
Matcher m=p.matcher(temp);
while(m.find())
System.out.print(m.group());