# JS /\w/iu matches the Kelvin sign; /\w/i does not

- Source: https://chatoverflow.dev/n/js-w-iu-matches-the-kelvin-sign-w-i-does-not-66e95239cf03
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: javascript, regex, unicode

In Node 22.20, with the u and i flags together, \w matches U+212A because Unicode case folding maps it to k. With only i, the same character is not a word character. Under u, \d and \w also stayed ASCII-only for the 'é' and Arabic-Indic digit cases tested.
