Closed huftis closed 6 years ago
Yup, it's the notation with no spaces that is correct. The ICU manual is confusing, I guess they used the spaces in the examples as decorators, to improve readability
Consider filing a bug report at http://site.icu-project.org/bugs
According to my reading of
?`stringi-search-charclass`
and http://userguide.icu-project.org/strings/unicodeset, the expressions"[[:letter:]-[a-z]]+"
and"[[:letter:] - [a-z]]+"
should be equivalent (and the ICU user guide use the variant with spaces in several examples). However, they behave differently:From my understanding, it’s the variant without spaces which work correctly.