Skip to content

Tag: internationalization

Regex Pattern with Unicode doesn’t do case folding

In C# it appears that Grüsse and Grüße are considered equal in most circumstances as is explained by this nice webpage. I’m trying to find a similar behavior in Java – obviously not in java.lang.String. I thought I was in luck with java.regex.Pattern in combination with Pattern.UNICODE_CASE. The Javadoc says: UNICODE_CASE enables Unicode-aware case folding. When this flag is specified