import java.util.regex.Matcher; import java.util.regex.Pattern;
public class test {
public static void main(String[] args)
{
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());
}
}
}