public class Regular_expressions {
static String myString = "a1323 123";
static String regexp = ".*[\n\t\f\r]+.*";
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(checkWithRegExp(myString));
}
public static boolean checkWithRegExp(String a)
{
Pattern pattern = Pattern.compile(regexp);
Matcher m = pattern.matcher(a);
return m.matches();
}
}