Incorrect Unicode property near index

android, regex

Solution

You should try `\p{L}` instead of `\pL` :)

Problem

I'm trying to use my method from java backend in android app (the problem might be that the backend is using JAVA 1.7, and the android app JAVA 1.6). The method is: ``` public static boolean isAlphabetCharacter(String letter) { String pattern = "\\A\\pL+\\z"; return letter.matches(pattern); } ``` It crashes with: `Incorrect Unicode property near index ...`

Original source