3 ms·
Standard classes only work for 8-bit locales, afaik, and also in some languages (e.g. perl) when a string encoding corresponds to an internal representation of
by wruza 6y ago
Standard classes only work for 8-bit locales, afaik, and also in some languages (e.g. perl) when a string encoding corresponds to an internal representation of what its engine thinks it is a "current" unicode format for the specific version of language and a checkout location. The fact that different tools stick to different engines, modes and normalization rules (bre/ere/posix/nfd/nfc/perl/pcre/php/ruby/icu/whatever) doesn't help either. Full cross-platform unicode matching is a can of worms that you usually don't want to open. It is basically CSV of the encoding world. /\S+?/ to the rescue.
https://regular-expressions.mobi/unicode.html https://regular-expressions.mobi/unicode.html
https://regular-expressions.mobi/refunicode.html https://regular-expressions.mobi/refunicode.html
https://regular-expressions.mobi/posixbrackets.html https://regular-expressions.mobi/posixbrackets.html
- mikepurvis 6y agoWell, that is horrifying. TIL.