There's no limitation on the regular expression compiled with the Pattern.CANON_EQ
. However
Pattern.compile("(?:\u00e9)",Pattern.CANON_EQ);
throws an exception:
java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 11
((?:é)|é)|e)́)
^
Note that the pattern is the normalized string. It looks like a bug in JRE, but I can't find such a bug in the issue tracker.
Seems it's this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4867170
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With