Detecting High Surrogates in a String using Regular Expressions
I want to check whether a String contains any High Surrogates. In Java I would use开发者_运维知识库 Character.isHighSurrogate(c) and this works.
In regex (using the implementation provided by Android 2.3.3 SDK), I was expecting this to work:
[\uD800-\uDBFF]
but it doesn't.
I am using the char:
精彩评论