I want to write a regex which is valid if it starts with IJ followed by any lowercase letters in utf-8.
private static String pattern = "^\\u0049\\u004A(\\p{Ll})*";
System.out.println(Pattern.compile(pattern).matcher("IJP").find()); // true
I am using this regex but it doesn't seem to work. For "IJP" it should not match as P is uppercase.